-
Notifications
You must be signed in to change notification settings - Fork 21
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
Controlling screen op in Sonic Pi #3
Comments
sonic-pi-cli just passes on the commands to Sonic Pi, which acts as a server. If the options aren't being respected, I would suspect this is a bug with Sonic Pi. I'm unsure as to what the "Print output" and "Check synth args" flags actually do. Perhaps @samaaron could shed some light on this? |
I looked at this again on my iMac this morning. There IS a differnce between running the file from within Sonic Pi and via the cli. On teh pref interface you can switch off pritned output. When you run via cli it still produces some. Try it with the file below. Run on iMac with print output on and off and see the difference. Then (with print output switched off on Sonic Pi) try running it with #The Earl of Essex Galiard John Dowland transcribed for Sonic Pi 2 by Robin Newman July 2014 s = 1.0 / 26 #s is speed multiplier 1.0 / 8 makes crotchet 1s or 60 crotchets/minute the default bpm use_synth :tri define :tune do|pitch,duration,shift=0,amp= 0.3| end n1 = [:g4,:a4,:bb4,:g4,:g5,:f5,:eb5,:d5,:d5,:c5,:bb4,:a4,:f5,:d5,:eb5,:c5,:d5,:c5,:bb4,:a4,:bb4,:c5,:bb4,:a4,:g4,:a4,:g4] define :sec1 do |m| nb1 = [:d5,:d5,:d5,:d5,:e5,:f5,:d5,:bb4,:c5,:d5,:c5,:d5,:e5,:f5,:d5,:eb5,:c5,:d5,:f5,:eb5,:d5,:g5,:fs5] define :sec2 do |m| nc1 = [:d5,:d5,:d5,:d5,:e5,:e5,:e5,:e5,:d5,:d5,:d5,:d5,:b4,:c5,:d5,:e5,:c5,:d5,:b4,:g4] 2.times do |
Hi there, @rbnpi is absolutely right - there is a difference between Sonic Pi's behaviour and You can see this happening here: The magic |
Ah! So basically its down to the user with sonic_pi to explicitly put in a use_debug false command in the file being sent to sonic_pi cli. That way the printed output is clobbered. |
Yep, or @Widdershin could teach |
I will definitely support this with some flags. |
:-) |
I never got around to this but if someone wants to pick this up I'll happily review and merge the pull request! |
I'm not sure that the cli takes account of the settings for Print output and check synth args. These can both seriously inhibit SP performance (on a model B B+) . Would be good if there were an option to switch them off. Not so much of a problem on a Pi 2 :-)
The text was updated successfully, but these errors were encountered: