a question about using the 09 command

Multi-platform modular music creation studio
Post Reply
El Nino
Posts: 299
Joined: Thu Mar 07, 2013 11:54 am

a question about using the 09 command

Post by El Nino »

I'm trying to cut through a sample of a 128 line pattern in 16 (8 line long) chunks using pattern command 09...

I can do it using 07 command:

trigger first 8 line chunk = 07 0000
trigger second 8 line chunk = 07 0800
trigger third 8 line chunk = 07 1800
trigger fourth 8 line chunk = 07 2000
and so on until 07 7800, which is the last of the 16 (8 line duration) chunks.

im having trouble using 09 to do the same thing..
What is the maximum value possible in the 09 command?
09 0080, 09 00FF, 09 0100, 09 8000?
When I put 09 0200 it jumps to almost halfway through the sample, but not exactly halfway.
(the sample is exactly 128 lines long, it was one pattern exported to wav..im using the same BPM and ticks per line as when I rendered to wav).

In the manual there is this example:

XXYY = 0023. This would make playback of the sample start at offset 0023 * 0100 = 2300

so i thought 09 0080 = the same as 07 8000...
but when Im using it 09 0200 seems to trigger sound at about halfway through the sample...

Im a bit confused if anyone can help me with this it would be great...sorry for the long post
User avatar
NightRadio
Site Admin
Posts: 3944
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: a question about using the 09 command

Post by NightRadio »

so i thought 09 0080 = the same as 07 8000...
It is not.
Unit of the 07 effect is the percent (scaled). 0000 = 0%; 4000 = 50%; 8000 = 100%
Unit of the 09 effect is the frame * 256. So it depends on the sample length.
Here are the examples of equivalent commands for the sample with length of 0x4000 frames:
0%: 07 0000 or 09 0000
50%: 07 4000 or 09 0020
100%: 07 8000 or 09 0040

And honestly i don't see a reason to use 09 command for you :)
El Nino
Posts: 299
Joined: Thu Mar 07, 2013 11:54 am

Re: a question about using the 09 command

Post by El Nino »

Thanks for the help and the examples. much appreciated
Post Reply