loop problem

Dec 6, 2006 at 4:25pm

loop problem

Hi!

i’ve a problem when playing loops:

Use this to see!

Make a sound like: (1 is a wave “up” and 0 is no wave”

1000

and another like:

1000100010001000

the first has to have 1/4 the time of the second

when you use to players in loop mode to play the sounds, only the first wave get syncronized. if you let the player role for some time you get an unsyncronized sound.

My question is: How to syncronize prefectly the loop point?

note: with groove~ and play~ we get the same thing!

max v2;
#N vpatcher 272 165 648 487;
#P user ezdac~ 152 232 196 265 0;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 280 126 28 9109513 open;
#N sfplay~ 2 120960 0 ;
#P newobj 280 157 48 9109513 sfplay~ 2;
#P newex 126 38 45 9109513 loadbang;
#P message 126 90 33 9109513 loop 1;
#P message 23 127 28 9109513 open;
#P toggle 165 90 15 0;
#N sfplay~ 2 120960 0 ;
#P newobj 23 158 48 9109513 sfplay~ 2;
#P comment 183 91 100 9109513 Play;
#P connect 4 0 1 0;
#P connect 2 0 1 0;
#P connect 3 0 1 0;
#P connect 5 0 4 0;
#P connect 6 0 8 0;
#P connect 1 0 8 0;
#P connect 6 1 8 1;
#P connect 1 1 8 1;
#P connect 4 0 6 0;
#P connect 2 0 6 0;
#P connect 7 0 6 0;
#P pop;

#29068
Dec 6, 2006 at 4:39pm

is has been widely discussed. the solution is to have a phasor~ driven counter to trigger boths players preferably buffer~ related objects ( play~, groove~, wave~….)

Quote: Rui Caldas wrote on Wed, 06 December 2006 08:25
—————————————————-
> Hi!
>
> i’ve a problem when playing loops:
>
> Use this to see!
>
> Make a sound like: (1 is a wave “up” and 0 is no wave”
>
> 1000
>
> and another like:
>
> 1000100010001000
>
> the first has to have 1/4 the time of the second
>
> when you use to players in loop mode to play the sounds, only the first wave get syncronized. if you let the player role for some time you get an unsyncronized sound.
>
> My question is: How to syncronize prefectly the loop point?
>
> note: with groove~ and play~ we get the same thing!
>
> max v2;
> #N vpatcher 272 165 648 487;
> #P user ezdac~ 152 232 196 265 0;
> #P window setfont “Sans Serif” 9.;
> #P window linecount 1;
> #P message 280 126 28 9109513 open;
> #N sfplay~ 2 120960 0 ;
> #P newobj 280 157 48 9109513 sfplay~ 2;
> #P newex 126 38 45 9109513 loadbang;
> #P message 126 90 33 9109513 loop 1;
> #P message 23 127 28 9109513 open;
> #P toggle 165 90 15 0;
> #N sfplay~ 2 120960 0 ;
> #P newobj 23 158 48 9109513 sfplay~ 2;
> #P comment 183 91 100 9109513 Play;
> #P connect 4 0 1 0;
> #P connect 2 0 1 0;
> #P connect 3 0 1 0;
> #P connect 5 0 4 0;
> #P connect 6 0 8 0;
> #P connect 1 0 8 0;
> #P connect 6 1 8 1;
> #P connect 1 1 8 1;
> #P connect 4 0 6 0;
> #P connect 2 0 6 0;
> #P connect 7 0 6 0;
> #P pop;
>
—————————————————-

#89968
Dec 6, 2006 at 11:00pm

Hi!

Yes, it is true! with groove~ works, but buffer~ spend a lot of time to load a file and i need to load>play as fast as possible.
Trying to load a 4m file (the small one) and tooks 2 seconds minimum, and sfplay~ is instantaneos… or it seems like!!

Thanks for the help anyway!

#89969
Jan 28, 2010 at 12:10am

instead of using |loop 1| to do looping,
you can set up a “master clock” with [metro],
and for every “1″ in your sequence, send a bang.
hope it helps…

#89970
Jan 28, 2010 at 2:33pm

hi,

“buffer~ spend a lot of time to load a file and i need to load>play as fast as possible”

why don’t you load all your audio files into separate buffers and then switch between buffers using the “set mybuffer” message on the groove~/play~/… ? this is fast.

g

#89971

You must be logged in to reply to this topic.