Hi, I'm new to PD. How would I add a control to adjust the start and end of a sample.
I'm trying to build a sequencer linked to the sampler so if you have any further suggestions it would help me a lot and be greatly appreciated as it's for a uni assignment.
-
How to add control to adjust sample start/end?
-
@AaronMusicTec [soundfiler] will give you the total number of samples in the audio file.
That will help for any calculations you might need to do.... if you want to split the playback options into 8 equal parts for example.You can send a list into [tabplay~] that will tell it at which sample to start..... and the number of samples to play.
So banging the message [44100 88200( into [tabplay~] will play starting at 1 second in..... and stop playing at 3 seconds in.... if the samplerate is 44100...... [start-sample continue-for-samples(You can use the Pd math functions to automate what you might want to achieve when [soundfiler] sends the total samplesize as you open a new file of a different size.
David. -
Thank you, @whale-av.
I want the user to be able to load in their own sample and be able to adjust the start/end point by themselves. I take it that this would be something controlled by the calculations?Aaron.
-
@AaronMusicTec Something like this.........samp.pd
Look at slider properties (right click) to see what is going on.
You could add other features like this......samp1.pd
David. -
That's perfect. Thank you so much, @whale-av!
Aaron.