random Play~
Hi, this I assume is really simple, but is driving my poor inexperienced max brain out!
All i want to do is playback with play~ at random parts of the loaded sound without changing the pitch. Its simply done with sfplay~ but i want the real time flexibility of play~ as ill be recording live chunks into the buffer~.
The problem is the comma in the list for the line~ object to playback the play~ sound.
I hope this makes sense in the patch example below.
Any help would be greatly appreciated, I hate asking when I think I should already know how.
You dont need the comma because you can make a list consisting of the start point and a 0. to tell line to go to that point immediately (in 0 milliseconds). Here is an example:
ahhhh! thanks so much. that was really irritating me. I'm still really struggling with lots of message based stuff, maybe there's more message based tutorials i missed somewhere?
Thanks again.
it seems you may have found an answer, but for future reference commas in messages must be preceded by a backslash.
for more info on punctuation in max check the max46topics.pdf (p.116).
j
thanks justin, time for a long recap I feel!
"
it seems you may have found an answer, but for future reference commas in messages must be preceded by a backslash."
this is false. When putting a comma into an object such as expr, you need to put a backslash.
Commas are used all the time in messages. In a message, a comma denotes a separate event. No backslash needed.
In the above problem using line, the comma was not the real problem with getting the concept to work. The messages being sent to line~ in the original patch worked, they just weren't doing what Seruka wanted.
Check the max topic on punctuation, its near the end of the pdf
Also, here is an example:
Robbie Lockwood schrieb:
> All i want to do is playback with play~ at random parts of the loaded
> sound without changing the pitch. Its simply done with sfplay~ but i
> want the real time flexibility of play~ as ill be recording live
> chunks into the buffer~.
>
> The problem is the comma in the list for the line~ object to playback
> the play~ sound. I hope this makes sense in the patch example below.
As had been pointed out already the comma isn't your problem.
For your specific task, you might want to look into groove~, because its
easier to navigate and navigation is independant of the playback speed.
With play~ you would have to calculate the duration as well to keep the
pitch constant...
There are three objects for the same purpose: to play back a buffer~'s
content: groove~, play~, wave~. They differ in the way they are
controlled. You should really learn all three, it will save you some
trouble, as each of the three is suited for different playback tasks,
though in theory you could use any of them for any playback task...
Stefan
--
Stefan Tiedje------------x-------
--_____-----------|--------------
--(_|_ ----|-----|-----()-------
-- _|_)----|-----()--------------
----------()--------www.ccmix.com
Hi,
consider also that with play~ you are forced to use small buffers by
the 32 bits addressing mode of Max/Msp (otherways you get strange
artifacts).
There are a bunch of hi-res objects which resolve this issue.
All the best
--
Alessandro Fogar
2007/7/12, Stefan Tiedje :
> Robbie Lockwood schrieb:
> > All i want to do is playback with play~ at random parts of the loaded
> > sound without changing the pitch. Its simply done with sfplay~ but i
> > want the real time flexibility of play~ as ill be recording live
> > chunks into the buffer~.
> >
> > The problem is the comma in the list for the line~ object to playback
> > the play~ sound. I hope this makes sense in the patch example below.
>
> As had been pointed out already the comma isn't your problem.
> For your specific task, you might want to look into groove~, because its
> easier to navigate and navigation is independant of the playback speed.
> With play~ you would have to calculate the duration as well to keep the
> pitch constant...
>
> There are three objects for the same purpose: to play back a buffer~'s
> content: groove~, play~, wave~. They differ in the way they are
> controlled. You should really learn all three, it will save you some
> trouble, as each of the three is suited for different playback tasks,
> though in theory you could use any of them for any playback task...
>
> Stefan
>
> --
> Stefan Tiedje------------x-------
> --_____-----------|--------------
> --(_|_ ----|-----|-----()-------
> -- _|_)----|-----()--------------
> ----------()--------www.ccmix.com
>
>
>