Should now be possible ![]()
Yeah, the editor needs a WHOLE heap of work in addition to proper shortcuts.
Would it be possible to have Run shortcut CMD R and Stop CMD S, same as in Sonic Pi, please Sam? I’ve got used to them, super useful shortcuts! Thanks for considering.
No, sorry - Cmd-R is reserved by browsers for refresh. I’m going to add the Sonic Tau shortcuts to Sonic Pi too - to make it easier to work between the two.
I agree it’s annoying though - that muscle memory is hard to leave behind!
Aw thanks, Sam - will learn the new moves ![]()
How can I count the number of loop iterations?
8.times do |i|
does not work.
Lua’s
for i=0,7 do
also does not work.
i=0
8.times do
i=i+1
end do
Is there any other way to count the number of loop iterations?
Sam’s probably going to have to confirm, but currently unless I’m not seeing something, I think it’s necessary to use tick, look (and tick_reset if you need to restart the count) - or use your own variables to manually do the same. (Named ticks aren’t implemented from the look of it, so only one tick per thread/live_loop works properly).
Adding a Sonic Tau equivalent of Ruby’s ‘blocks’ (eg to access an iteration count block variable) might be helpful, but not sure what that might look like.
This now works:
10.times do |i|
print i
end
Sonic Pi returns the symbol “:M”, but Sonic Tau returns “M” without the symbol.
crds = [:M, :m]
print crds[0]
That’s great that it can handle embedded lists for chords now I also tick over these too.
@samaaron I can’t find square bracket input on the iPhone keyboard with Tau. There are curly and curved brackets but no rectangular ones that I can find.
inside a thread I can’t call a function that was defined outside of it, so if I write a helper function I have to copy and paste the definition inside every in_thread and/or live_loop that uses it.
That looks like it’s just the way Sonic Tau prints symbols: if you run print :M you see it also prints just the M without the colon, so I don’t think this will affect the behaviour.
This is what I wanted to do, but the “c” below is not recognized as a symbol, resulting in an error.
c=[:M,:m][0]
play chord(:C4, c)
In settings there is an option Virtual Keyboard (vs system) If you turn that off you’ll get the iOS keyboard.
The virtual keyboard does have some nice extras tho.
That’s strange. Especially since, despite the error message, chord will actually accept a string: chord(:C4, "M"), but it still fails if you use strings in the array.
Fix for this is now live ![]()
Fix for this is now live ![]()
Still much work to do on tuning the keyboard - but I made another pass on it today and it now has square brackets ![]()
Thanks for adding the [ ] on the keybioard.
Another bug noted by user TKonan is that the use_synth completion code suggestiosn are all about fx rather than listing synths, Something funny happening here.