Re: [PD] groove machine how to: keep metro and a loop in sync

2014-01-14 Thread Filippo Beck Peccoz
Just an update: I solved my issue by removing an [i] object that I inserted in 
the subpatch that handles the bpm conversion it rounded off the tempo just 
enough to cause that drift- why I included this in the first place  I don't 
know -.- 

Now it's rock solid!

As always, thanks for your input and best from Munich,


Filippo


Filippo Beck Peccoz
Game Audio

www.fbpsound.com
Twitter: @fbpsound
Skype: fbpsound
Mobile: +49-(0)1520-4004143
Studio: +49-(0)89-80033204
Fax: +49-(0)89-99752164




On Jan 13, 2014, at 8:26 PM, Filippo Beck Peccoz m...@fbpsound.com wrote:

 Thank you Funs for pointing the reply-all thing out, sorry! Now sending to 
 the whole list :)
 
 I'd be happy to keep tabplay for this since it seems solid and easy to work 
 with, but will have to look deeper into the phasor~ solution, it looks very 
 interesting.
 
 Brian, thanks for your suggestions, and here is the patch with a test loop.
 
 https://fbpserver.dyndns.org/pydio/data/public/366c84.php
 
 It's messy but I commented a bit to show the way- I'm still thinking about 
 how to integrate some sort of dynamic difficulty level that gradually 
 introduces longer stretches of silence, but that is not hardcoded like it 
 is here.
 
 After a while, the fade kicks in just a tad early, it seems to me. The basic 
 functions are there, but it's weird that it seems to slide a bit. Or am I 
 going crazy? :)
 
 
 Cheers,
 
 Filippo
 
 
 Filippo Beck Peccoz
 Game Audio
 
 www.fbpsound.com
 Twitter: @fbpsound
 Skype: fbpsound
 Mobile: +49-(0)1520-4004143
 Studio: +49-(0)89-80033204
 Fax: +49-(0)89-99752164
 
 
 
 
 On Jan 13, 2014, at 7:22 PM, Brian Fay ovaltinevor...@gmail.com wrote:
 
 I'm not super-familiar with the guts of Pd's scheduling system, but I think 
 that if one metro object outputs a bang to separate tabplay~ objects, both 
 should start playing at exactly the same time. 
 
 While using line~ or phasor~ can lead to more robust samplers (allowing you 
 to adjust playback speed, etc.), I think tabplay~ should be perfectly 
 adequate for this patch.
 
 Filippo, it would help us to see your patch and the samples you are using, 
 so that we could get a better idea of how the loops are getting out of sync.
 
 -Brian
 
 
 On Mon, Jan 13, 2014 at 12:45 PM, Funs Seelen funssee...@gmail.com wrote:
 
 Hi Filippo,
 
 You're welcome.
 
 You probably forgot to reply-to-all, but I added pd-list to the 
 conversation. I hope you don't mind, but I do this ...
 a) to prevent ten people to answer the same question, not knowing that nine 
 others are or have been spending time to do exactly the same, and
 b) for the archive. It's annoying if you have a problem, search the web, and 
 do find your question, but not the answer, since it is not made public.
 
 On Mon, Jan 13, 2014 at 5:48 PM, Filippo Beck Peccoz m...@fbpsound.com 
 wrote:
 Hi Funs and thanks a lot for the message! Sorry if I'm launching noob 
 questions at you, but so far I've only used a tabplay~ object and a metro 
 with a set bpm, and triggered both of them at the same time- this is 
 obviously not ideal..although it almost works the fade into and out of the 
 drum loop should be perfectly timed, especially for this kind of application.
 
 I am, however, a little lost as to how extrapolate bar/beat information from 
 the objects you suggested. I'm sure it's super easy and I'm missing 
 something obvious. Why do you put the 1000 in the message that goes to the 
 line object?
  
 I assumed you were reading the table with [tabread~] or [tabread4~]. For 
 looping purposes it is common to use [phasor~] in combination with one of 
 these two. If the loop should last 1 second (1000 ms) its frequence should 
 be 1 Hertz (cycle per second). So the equivalent for the argument `1' for 
 [phasor~] would be `1000' (milliseconds) for [line~]. Translation is done 
 using the following function: y = 1000 / x, where x is the length of the 
 time interval in ms and y the frequency in Hz (note that x = 1000 / y). This 
 one second sample was just an example. [soundfiler] outputs the length of 
 your sound sample in dsp samples.
 
 I don't understand what you mean by `bar/beat information', for I can't 
 precisely imagine what you are building.
 
 Regards,
 Funs
 
 
 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list
 
 
 

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] groove machine how to: keep metro and a loop in sync

2014-01-13 Thread Funs Seelen
Hi Filippo,

You're welcome.

You probably forgot to reply-to-all, but I added pd-list to the
conversation. I hope you don't mind, but I do this ...
a) to prevent ten people to answer the same question, not knowing that nine
others are or have been spending time to do exactly the same, and
b) for the archive. It's annoying if you have a problem, search the web,
and do find your question, but not the answer, since it is not made public.

On Mon, Jan 13, 2014 at 5:48 PM, Filippo Beck Peccoz m...@fbpsound.comwrote:

 Hi Funs and thanks a lot for the message! Sorry if I'm launching noob
 questions at you, but so far I've only used a tabplay~ object and a metro
 with a set bpm, and triggered both of them at the same time- this is
 obviously not ideal..although it almost works the fade into and out of
 the drum loop should be perfectly timed, especially for this kind of
 application.

 I am, however, a little lost as to how extrapolate bar/beat information
 from the objects you suggested. I'm sure it's super easy and I'm missing
 something obvious. Why do you put the 1000 in the message that goes to the
 line object?


I assumed you were reading the table with [tabread~] or [tabread4~]. For
looping purposes it is common to use [phasor~] in combination with one of
these two. If the loop should last 1 second (1000 ms) its frequence should
be 1 Hertz (cycle per second). So the equivalent for the argument `1' for
[phasor~] would be `1000' (milliseconds) for [line~]. Translation is done
using the following function: y = 1000 / x, where x is the length of the
time interval in ms and y the frequency in Hz (note that x = 1000 / y).
This one second sample was just an example. [soundfiler] outputs the length
of your sound sample in dsp samples.

I don't understand what you mean by `bar/beat information', for I can't
precisely imagine what you are building.

Regards,
Funs
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] groove machine how to: keep metro and a loop in sync

2014-01-13 Thread Brian Fay
I'm not super-familiar with the guts of Pd's scheduling system, but I think
that if one metro object outputs a bang to separate tabplay~ objects, both
should start playing at exactly the same time.

While using line~ or phasor~ can lead to more robust samplers (allowing you
to adjust playback speed, etc.), I think tabplay~ should be perfectly
adequate for this patch.

Filippo, it would help us to see your patch and the samples you are using,
so that we could get a better idea of how the loops are getting out of sync.

-Brian


On Mon, Jan 13, 2014 at 12:45 PM, Funs Seelen funssee...@gmail.com wrote:


 Hi Filippo,

 You're welcome.

 You probably forgot to reply-to-all, but I added pd-list to the
 conversation. I hope you don't mind, but I do this ...
 a) to prevent ten people to answer the same question, not knowing that
 nine others are or have been spending time to do exactly the same, and
 b) for the archive. It's annoying if you have a problem, search the web,
 and do find your question, but not the answer, since it is not made public.

 On Mon, Jan 13, 2014 at 5:48 PM, Filippo Beck Peccoz m...@fbpsound.comwrote:

 Hi Funs and thanks a lot for the message! Sorry if I'm launching noob
 questions at you, but so far I've only used a tabplay~ object and a metro
 with a set bpm, and triggered both of them at the same time- this is
 obviously not ideal..although it almost works the fade into and out of
 the drum loop should be perfectly timed, especially for this kind of
 application.

 I am, however, a little lost as to how extrapolate bar/beat information
 from the objects you suggested. I'm sure it's super easy and I'm missing
 something obvious. Why do you put the 1000 in the message that goes to the
 line object?


 I assumed you were reading the table with [tabread~] or [tabread4~]. For
 looping purposes it is common to use [phasor~] in combination with one of
 these two. If the loop should last 1 second (1000 ms) its frequence should
 be 1 Hertz (cycle per second). So the equivalent for the argument `1' for
 [phasor~] would be `1000' (milliseconds) for [line~]. Translation is done
 using the following function: y = 1000 / x, where x is the length of the
 time interval in ms and y the frequency in Hz (note that x = 1000 / y).
 This one second sample was just an example. [soundfiler] outputs the length
 of your sound sample in dsp samples.

 I don't understand what you mean by `bar/beat information', for I can't
 precisely imagine what you are building.

 Regards,
 Funs


 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] groove machine how to: keep metro and a loop in sync

2014-01-13 Thread Filippo Beck Peccoz
Thank you Funs for pointing the reply-all thing out, sorry! Now sending to the 
whole list :)

I'd be happy to keep tabplay for this since it seems solid and easy to work 
with, but will have to look deeper into the phasor~ solution, it looks very 
interesting.

Brian, thanks for your suggestions, and here is the patch with a test loop.

https://fbpserver.dyndns.org/pydio/data/public/366c84.php

It's messy but I commented a bit to show the way- I'm still thinking about how 
to integrate some sort of dynamic difficulty level that gradually introduces 
longer stretches of silence, but that is not hardcoded like it is here.

After a while, the fade kicks in just a tad early, it seems to me. The basic 
functions are there, but it's weird that it seems to slide a bit. Or am I going 
crazy? :)


Cheers,

Filippo


Filippo Beck Peccoz
Game Audio

www.fbpsound.com
Twitter: @fbpsound
Skype: fbpsound
Mobile: +49-(0)1520-4004143
Studio: +49-(0)89-80033204
Fax: +49-(0)89-99752164




On Jan 13, 2014, at 7:22 PM, Brian Fay ovaltinevor...@gmail.com wrote:

 I'm not super-familiar with the guts of Pd's scheduling system, but I think 
 that if one metro object outputs a bang to separate tabplay~ objects, both 
 should start playing at exactly the same time. 
 
 While using line~ or phasor~ can lead to more robust samplers (allowing you 
 to adjust playback speed, etc.), I think tabplay~ should be perfectly 
 adequate for this patch.
 
 Filippo, it would help us to see your patch and the samples you are using, so 
 that we could get a better idea of how the loops are getting out of sync.
 
 -Brian
 
 
 On Mon, Jan 13, 2014 at 12:45 PM, Funs Seelen funssee...@gmail.com wrote:
 
 Hi Filippo,
 
 You're welcome.
 
 You probably forgot to reply-to-all, but I added pd-list to the conversation. 
 I hope you don't mind, but I do this ...
 a) to prevent ten people to answer the same question, not knowing that nine 
 others are or have been spending time to do exactly the same, and
 b) for the archive. It's annoying if you have a problem, search the web, and 
 do find your question, but not the answer, since it is not made public.
 
 On Mon, Jan 13, 2014 at 5:48 PM, Filippo Beck Peccoz m...@fbpsound.com 
 wrote:
 Hi Funs and thanks a lot for the message! Sorry if I'm launching noob 
 questions at you, but so far I've only used a tabplay~ object and a metro 
 with a set bpm, and triggered both of them at the same time- this is 
 obviously not ideal..although it almost works the fade into and out of the 
 drum loop should be perfectly timed, especially for this kind of application.
 
 I am, however, a little lost as to how extrapolate bar/beat information from 
 the objects you suggested. I'm sure it's super easy and I'm missing something 
 obvious. Why do you put the 1000 in the message that goes to the line object?
  
 I assumed you were reading the table with [tabread~] or [tabread4~]. For 
 looping purposes it is common to use [phasor~] in combination with one of 
 these two. If the loop should last 1 second (1000 ms) its frequence should be 
 1 Hertz (cycle per second). So the equivalent for the argument `1' for 
 [phasor~] would be `1000' (milliseconds) for [line~]. Translation is done 
 using the following function: y = 1000 / x, where x is the length of the time 
 interval in ms and y the frequency in Hz (note that x = 1000 / y). This one 
 second sample was just an example. [soundfiler] outputs the length of your 
 sound sample in dsp samples.
 
 I don't understand what you mean by `bar/beat information', for I can't 
 precisely imagine what you are building.
 
 Regards,
 Funs
 
 
 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list
 
 

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] groove machine how to: keep metro and a loop in sync

2014-01-11 Thread Funs Seelen
Hi Filippo,

On Fri, Jan 10, 2014 at 6:57 PM, Filippo Beck Peccoz m...@fbpsound.comwrote:


 Inspired by a talk on groove by Victor Wooten, I'm working on a patch that
 plays a wav loop repeatedly (drums) and then cuts the volume on the track
 for a certain number of beats. The interval gets larger and larger, forcing
 you to work on your timing and general groove feel.

 The patch is already working quite OK, but one thing I cannot seem to get
 completely right is a perfect sync between the beats which cut off the
 volume of the wav.

 I'm using a metro object set to the bpm of the loop and start both
 concurrently. Maybe this is just much too imprecise for what I'm trying to
 do..


If I understand you right you would like to synchronize an audio loop
with a [metro]. I guess you control the audio loop by something like
[phasor~] or at least anything controlled within the DSP domain. Then, if
you replace such [phasor~] with a [line~], controlled within the event
domain there should be no problem anymore.

Example:

[phasor~ 1]

gets

[metro 1000]
|
[0, 1 1000(
|
[line~]

or even something like te following (unpack and pack the message to add
something to the second value)

[metro 250]
|  \
|   [i ]/[+1]/[%4]
|  /
|/
[0, 1 250(
| /
[+ ]
|
[/ 4]
|
[line~]

to divide this second into four line segments.

Regards,
Funs
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] groove machine how to: keep metro and a loop in sync

2014-01-11 Thread peiman khosravi
Oh use threshold~ to make a metro out of phasor~.




*www.peimankhosravi.co.uk http://www.peimankhosravi.co.uk || RSS Feed
http://peimankhosravi.co.uk/miscposts.rss || Concert News
http://spectralkimia.wordpress.com/*


On 11 January 2014 10:05, Funs Seelen funssee...@gmail.com wrote:

 Hi Filippo,


 On Fri, Jan 10, 2014 at 6:57 PM, Filippo Beck Peccoz m...@fbpsound.comwrote:


 Inspired by a talk on groove by Victor Wooten, I'm working on a patch
 that plays a wav loop repeatedly (drums) and then cuts the volume on the
 track for a certain number of beats. The interval gets larger and larger,
 forcing you to work on your timing and general groove feel.

 The patch is already working quite OK, but one thing I cannot seem to get
 completely right is a perfect sync between the beats which cut off the
 volume of the wav.

 I'm using a metro object set to the bpm of the loop and start both
 concurrently. Maybe this is just much too imprecise for what I'm trying to
 do..


 If I understand you right you would like to synchronize an audio loop with
 a [metro]. I guess you control the audio loop by something like [phasor~]
 or at least anything controlled within the DSP domain. Then, if you replace
 such [phasor~] with a [line~], controlled within the event domain there
 should be no problem anymore.

 Example:

 [phasor~ 1]

 gets

 [metro 1000]
 |
 [0, 1 1000(
 |
 [line~]

 or even something like te following (unpack and pack the message to add
 something to the second value)

 [metro 250]
 |  \
 |   [i ]/[+1]/[%4]
 |  /
 |/
 [0, 1 250(
 | /
 [+ ]
 |
 [/ 4]
 |
 [line~]

 to divide this second into four line segments.

 Regards,
 Funs

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] groove machine how to: keep metro and a loop in sync

2014-01-10 Thread Filippo Beck Peccoz
Dear list,

happy new year first of all :)

I wanted to ask you about something that should be simple, but might not be 
that much.

Inspired by a talk on groove by Victor Wooten, I'm working on a patch that 
plays a wav loop repeatedly (drums) and then cuts the volume on the track for a 
certain number of beats. The interval gets larger and larger, forcing you to 
work on your timing and general groove feel.

The patch is already working quite OK, but one thing I cannot seem to get 
completely right is a perfect sync between the beats which cut off the volume 
of the wav.

I'm using a metro object set to the bpm of the loop and start both 
concurrently. Maybe this is just much too imprecise for what I'm trying to do..

thank you all!


Cheers from Munich,

Filippo


Filippo Beck Peccoz
Game Audio

www.fbpsound.com
Twitter: @fbpsound
Skype: fbpsound
Mobile: +49-(0)1520-4004143
Studio: +49-(0)89-80033204
Fax: +49-(0)89-99752164




___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list