I am a new user of Bach so please excuse this naive question, but I have spent days looking at the documentation and examples and I can’t find a simple way to dump all the note data (llll) that is contained between two markers, eg. Marker 1 & marker 2 - from a bach.roll into another bach.roll
Can anyone help with this?
I have looked at objects like cage.slice etc but it requires two time specifications. I want to just place two markers and then dump the stuff between them.
Cheers,
David
Dump content between markers in Bach.roll
-
- Site Admin
- Posts: 1349
- Joined: Fri Dec 03, 2010 1:25 pm
Re: Dump content between markers in Bach.roll
Hi, and welcome aboard!
[cage.slice], without any argument, does exactly that: it slices via markers.
Have a look at its help file.
[cage.slice], without any argument, does exactly that: it slices via markers.
Have a look at its help file.
Re: Dump content between markers in Bach.roll
Thank you Daniele that is very helpful, but cage.slice works with bach.pick which assumes you already know the number of sections you have sliced the roll into.
What if I have a long roll, with say 7 markers, and I want to dump the section between marker 4 and marker 5?
I've tried bach.nth since I can input its argument via the right inlet to select the nth slice, but bach.nth doesn't seem to work in the same manner as bach.pick
For example bach.nth 2 doesn't give the same (or any roll) output as the 2nd outlet of bach.pick 1 2 3
Is there a way I can use bach.nth to obtain the nth slice of a bach.roll/cage.slice combination to dump into another bach.roll?
cheers,
David
What if I have a long roll, with say 7 markers, and I want to dump the section between marker 4 and marker 5?
I've tried bach.nth since I can input its argument via the right inlet to select the nth slice, but bach.nth doesn't seem to work in the same manner as bach.pick
For example bach.nth 2 doesn't give the same (or any roll) output as the 2nd outlet of bach.pick 1 2 3
Is there a way I can use bach.nth to obtain the nth slice of a bach.roll/cage.slice combination to dump into another bach.roll?
cheers,
David
-
- Site Admin
- Posts: 1349
- Joined: Fri Dec 03, 2010 1:25 pm
Re: Dump content between markers in Bach.roll
Yes, just put a [bach.flat 1] after [bach.nth].
You might want to follow the first bach tutorial (the one about lllls) if you want to know why this works.
Best,
d
You might want to follow the first bach tutorial (the one about lllls) if you want to know why this works.
Best,
d
Re: Dump content between markers in Bach.roll
Yes that works brilliantly. Thanks very much - again. Now back to the tutorials to work out why, etc.
Thanks
David
Thanks
David