-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with sending a buffer #20
Comments
Can confirm that. 'sonic-pi-send-buffer' does not do anything anymore. |
@mbutz I'm currently using this replacement if you are interested (defun sonic-pi-send-full-buffer ()
"send full buffer selecting region of full buffer"
(interactive)
(sonic-pi-osc-send-text (point-min) (point-max))
(hlt-highlight-regexp-region (point-min)
(point-max)
".+"
'eval-sonic-pi-flash nil)
(run-at-time flash-time nil 'hlt-unhighlight-region nil nil nil))
(add-hook 'sonic-pi-mode-hook
(lambda ()
(setq sonic-pi-path "/opt/sonic-pi/app/")
(define-key sonic-pi-mode-map (kbd "C-c C-p") 'sonic-pi-stop-all)
(define-key sonic-pi-mode-map (kbd "C-c C-k") 'sonic-pi-send-full-buffer))) |
Wow. Thanks! Works flawlessly. Just out of curiosity: Can you confirm #19 or haven't you tried to use midi yet? |
@greenfork Any chance you have the error in the buffer? Also the version of SP you are trying to run against? Thanks. |
I believe this is an issue that SP in latest versions removed the fn https://github.com/repl-electric/sonic-pi.el/blob/master/sonic-pi-osc.el#L61-L66 This makes me sad, since this fn fixes a big problem with SP: #21 Probably I'll fix this by resorting back to the old SP osc fn. Since most people will just want it to work (until they hit #21 and cry). |
Should be fixed now @greenfork, I'll close but feel free to re-open if I messed anything up. |
Hi! I had an issue with sending a buffer whereas sending a region works fine. Are there any caveats of sending a region of all the buffer instead of sending the buffer as a file? Is this a common problem?
And if it's ok, can I suggest a pull request of reimplementing the
sonic-pi-send-buffer
function insonic-pi-osc.el
?The text was updated successfully, but these errors were encountered: