SynthMaker

Simple Wave File Player

Archive · 2009 5 old posts

From the original SynthMaker forum (2004–2014), with its members’ names and dates.

jonessy ·

Hello all,

Downloaded the SM trial, and I'm trying to do some basic DSP stuff, such as a first order FIR filter using low level coding. But I'm not there yet.

To begin with, I'm simply trying to playback a wave file with no luck. This will allow me to test the algorithms in-situ, rather than exporting the schematics to VST or whatever.

Can anyone kindly provide a working and tested SM schematic that allows loading a file (f.e. song in wav format) and simply plays it back through the sound direct-out?

Best wishes, SM newbie.

oddson ·

Smart-ass answer:

Plays only a fragment of a wave file and not at all what you really want but it does work as a sample file preview.

I'll post a serious answer shortly if no one beats me to it.

oddson ·

Less smart-ass answer:

The sample player in the toolbox has all the basic elements you'll need to understand but it may be a bit too much to start with.

Try this:

The wave loader is from the Wave Player (and likely found in others too) the code is a simple ramp that should re-trigger when a new wave is loaded.

It will play at the selected sample rate of your audio card without interpolating based on sample rate of the wave file.

After retriggering the code will output an constantly increasing index that the Wave Read uses to keep track of what sample it's reading and then it goes directly to the output.

The stock wave player then adds a number of features to this including accounting for playback sample rates that are different from the recorded file and transposing based on the note played.

Start with this, then start looking through the wave player and keep asking questions when you get stuck... but the Help form is more appropriate place for them.

jonessy ·

Thank you so much!

Works fine. I'll explore the schematics, but I think this is pretty much what I was looking for.

I just need this to see if I can demonstrate simple DSP stuff using the code module, like first & second order FIRs and IIRs.

So basically I just needed to playback something through the code block...

Cheers, Jon.

oddson ·

I just needed to playback something through the code block...

Well then the first example is adequate. In fact I think that's why OutSim made it in the first place (it's been R&D status forever).

(EDIT - I guess I never read your first post very carefully as that is indeed what you said there. 😊 )

Wrote something here? To have a post removed or your name hidden, write to [email protected].

Before your first post

A few rules keep this a friendly place. You agree to them once.

Shown next to what you post, here and in the app. It doesn’t have to be your real name: 3–24 lower-case letters, digits or _ (capitals become lower case, spaces become _).

    Then your post goes up straight away.

    Delete this reply?

    Open it in SynthMaker?

    It goes on the track you’re editing there, in place of that track’s sound, and into My sounds. Your other tracks stay as they are.

    Want to keep that track’s sound? Start a new song in SynthMaker first (Song › New song), then open this.

    Report this reply?

    Only the developer reads reports. The person isn’t told who reported them.

    What’s wrong with it?

    Block this person?

    You won’t see their posts and replies here any more. They aren’t told, and you can unblock them at any time.

    People you’ve blocked

    Their posts and replies are hidden from you. Unblock someone to see them again.

    The community rules

    A few rules keep this a friendly place. Everyone agrees to them once, before their first post.