Plug'n Script: Can I Playback a Section of WAV @ host BPM
-
crossovercable crossovercable https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=329708
- KVRian
- 576 posts since 26 May, 2014
Can I playback a sample section of a wav file at the Host bpm ?
So can I point the script to a wav file and set the sample start pos and end pos in the wav and play it back in sync with the DAW tempo if I set the original bpm of the wav ?
So can I point the script to a wav file and set the sample start pos and end pos in the wav and play it back in sync with the DAW tempo if I set the original bpm of the wav ?
-
crossovercable crossovercable https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=329708
- KVRian
- Topic Starter
- 576 posts since 26 May, 2014
So something like the wav file player.cxx that I can select the file.
The file name will contain the bmp "Guitar, Strum, Ev8 4-4 120bpm.wav"
I will set a sample pos start and pos end of a section in the wav.
This will be triggered when the VstTimeInfo reaches a certain number of beats
or when I input a midi chord: notes 48, 52, 55
Say the sample length is 4 bars it will play/loop those 4 bars in sync to the DAW host tempo.
The idea is to have different chords playing in the source wav file at different bars locations.
There is a Guitar, Strum, Ev8 4-4 120bpm.csv with the start/end times of the chords to work out the sample start/end positions, so it would need to parse that. The color is the section verse, chorus, ending etc.. playing style.

Would it be possible with the GUI to have it represent Bars/Beats of the DAW timeline,
and be editable so you could insert chord change names at different bars or beats ?
Either page view or linear view if easier.

The file name will contain the bmp "Guitar, Strum, Ev8 4-4 120bpm.wav"
I will set a sample pos start and pos end of a section in the wav.
This will be triggered when the VstTimeInfo reaches a certain number of beats
or when I input a midi chord: notes 48, 52, 55
Say the sample length is 4 bars it will play/loop those 4 bars in sync to the DAW host tempo.
The idea is to have different chords playing in the source wav file at different bars locations.
There is a Guitar, Strum, Ev8 4-4 120bpm.csv with the start/end times of the chords to work out the sample start/end positions, so it would need to parse that. The color is the section verse, chorus, ending etc.. playing style.
Code: Select all
#,Name,Start,End,Length,Color
R1,,1.1.00,3.1.00,2.0.00,FF80C0
R2,A,3.1.00,5.1.00,2.0.00,E41A27
R3,A#,5.1.00,7.1.00,2.0.00,E41A27
R4,B,7.1.00,9.1.00,2.0.00,E41A27
R5,C,9.1.00,11.1.00,2.0.00,E41A27
R6,C#,11.1.00,13.1.00,2.0.00,E41A27
R7,D,13.1.00,15.1.00,2.0.00,E41A27
Would it be possible with the GUI to have it represent Bars/Beats of the DAW timeline,
and be editable so you could insert chord change names at different bars or beats ?
Either page view or linear view if easier.

Last edited by crossovercable on Fri Jun 04, 2021 7:31 am, edited 1 time in total.
-
Blue Cat Audio Blue Cat Audio https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=39981
- KVRAF
- 6345 posts since 8 Sep, 2004 from Paris (France)
It is possible, but you have to resample the audio files by yourself so that they fit the right length, then sync with the host using the TransportInfo.
-
crossovercable crossovercable https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=329708
- KVRian
- Topic Starter
- 576 posts since 26 May, 2014
Sorry I thought you were still in bed in the US and was updating the post but I see you are just getting in France 
I would like to buy it as long as I can do all this with it.
Any help would be much appreciated and pointing to any scripts to help get it started.
I would like to buy it as long as I can do all this with it.
Any help would be much appreciated and pointing to any scripts to help get it started.
-
Blue Cat Audio Blue Cat Audio https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=39981
- KVRAF
- 6345 posts since 8 Sep, 2004 from Paris (France)
For host sync you can check in the factory midi scripts. There is however currently no utility provided for resampling so there is a bit of extra work there.
-
crossovercable crossovercable https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=329708
- KVRian
- Topic Starter
- 576 posts since 26 May, 2014
Thanks will have a look. Does the GUI I mentioned above sound doable ?
-
Blue Cat Audio Blue Cat Audio https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=39981
- KVRAF
- 6345 posts since 8 Sep, 2004 from Paris (France)
That's quite a bit of work, but it indeed seems doable. The only tricky thing is for the timeline display: the plug-in has no direct access to the DAW's timeline and waveform, so if you want to display the waveform, it has to be stored somehow the first time the DAW plays the audio thru the plug-in.crossovercable wrote: Fri Jun 04, 2021 7:58 am Thanks will have a look. Does the GUI I mentioned above sound doable ?
-
crossovercable crossovercable https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=329708
- KVRian
- Topic Starter
- 576 posts since 26 May, 2014
Thanks, I don't want to display the waveform just the timeline as bars & beats (grid) that a chord name can be added at any bar or beat, when the beat count gets to that chord name then the chord is played in that section of the wav file.

