Simulate a tape player with mouse

Matias Ocarez's icon

Hi!

I'm trying to make a patch that simulates a tape player with mousestate, kind of a simulation of moving a tapehead (mouse) across a piece of tape (the screen), is it possible?

I first tried using play~, sending the X axis of mousestate to a "start $1" message and then to the play~ object, this worked but caused a lot of clicks, is there a way to remove them? I know the concept of "ducking" but that seems to work with loops only

I also tried using groove~ and its playback speed capability to simulate the changes in pitch with the movement-speed of the mouse, with mixed results

Any tips? I realize trying to simulate analog behavior in a digital environment would bring about many problems, but I had to at least try 😅

Source Audio's icon

you need scrubbing.
it can work only buffer~ based.
There are many examples using grain stuff, gen or etc if you search the forum.
here is simplest example

Max Patch
Copy patch and select New From Clipboard in Max.