SynthMaker

Integer input for Index selector

Archive · 2010 4 old posts

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

jobro ·

This is something I need to be added. Suppose that you're creating a VST to play a random sample depending on any key you press. Also suppose that you have a textfile containing all the samples you want to randomize. Wouldn't it be good to have access to the number of lines in an index selector? Wouldn't it also be usefull if you could set the selected string from an integer rather than through entering the proper text that line contains? It seams that this is something that would help creating much easier text applications.

trogluddite ·

Maybe this will do what you need... Use a String Array connected to the same text list - then use your input index and an Array Extract to get the relevant text string to set the Index Selector using its text input. Connect it via a string switch, then you can still have a 'Set by text entry' option. The array will also give the number of entries. Hope I explained that OK (can't put osm on Requests forum) it's a bit clunky, but it seems to work OK.

jobro ·

Well I suppose that would do the trick, but then I need to know how many lines is stored in the file in the first place. You see what I'm doing is creating a lyrics display system (similar to karaoke) to help singers out in the studio. The key displays a textline, the modwheel shows a progressbar for that line. Read beyond EOF is not very useful. 🙂

Tzarls ·

If you connect the loaded text to a string array primitive, there´s an int output that tell exactly how many lines there are in your text.

I´ve been doing something very similiar to what you want as an exam for my students.

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.