Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Load WAVs with Preset manager?

For general discussion related FlowStone

Re: Load WAVs with Preset manager?

Postby StereoSpace » Sun Dec 06, 2015 10:00 pm

Hello! I wanted to make a drum player on the basis of sfz samples, but was faced with only one stereo output. Is it possible to make the 8 independent outputs to 8 different samples of one sfz focused on different channels?
GUI designer
User avatar
StereoSpace
 
Posts: 78
Joined: Sat Feb 21, 2015 12:59 am

Re: Load WAVs with Preset manager?

Postby kortezzzz » Mon Dec 07, 2015 6:13 am

Is it possible to make the 8 independent outputs to 8 different samples of one sfz focused on different channels?


Yes, but in this case, you should load each sample in it's own sfz engine (and limit the number of the total samples for each engine to 1) and create 8 separate stereo outputs (with their own names) in your schematic's final stage.
The DAW then would detect each stereo output (pair of mono outputs) as an independent output and would allow you to stream each one of them to a different channel in it.
User avatar
kortezzzz
 
Posts: 763
Joined: Tue Mar 19, 2013 4:21 pm

Re: Load WAVs with Preset manager?

Postby Spogg » Mon Dec 07, 2015 10:39 am

I think I've found a way to do this!

Have a look at the schematic. The preset string prim is my friend here. It's wired between the file dialogue and the wave load so the preset system intervenes.

Load a wav in program 1.
Save it in the Preset Manager.
Load a wav for program 2
Save it in the Preset Manager.
Then you can select the previous wav in the program manager etc.

Can anyone see if there's a problem with this principle?

Cheers

Spogg
Attachments
Principle of loading WAVS from preset manager.fsm
(1.08 MiB) Downloaded 942 times
User avatar
Spogg
 
Posts: 3358
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England

Re: Load WAVs with Preset manager?

Postby StereoSpace » Tue Dec 08, 2015 4:54 pm

kortezzzz wrote:
Is it possible to make the 8 independent outputs to 8 different samples of one sfz focused on different channels?


Yes, but in this case, you should load each sample in it's own sfz engine (and limit the number of the total samples for each engine to 1) and create 8 separate stereo outputs (with their own names) in your schematic's final stage.
The DAW then would detect each stereo output (pair of mono outputs) as an independent output and would allow you to stream each one of them to a different channel in it.


Thanx!!! Exactly what is needed! it now remains to understand how it all collect)))
GUI designer
User avatar
StereoSpace
 
Posts: 78
Joined: Sat Feb 21, 2015 12:59 am

Re: Load WAVs with Preset manager?

Postby tulamide » Wed Dec 09, 2015 10:46 am

@Spogg
@Adam

Before I post it in either "user examples" or on Flowstone Guru, I would like you to test my new little helper. I call it TPMS, tula's Path Managment System. It consists of three components:
- The manager that keeps track of all paths, converts them back and forth and binds the data to the Preset Manager
- The path selection that allows you to enter paths one by one
- The Receiver that listens to a specific id and outputs any changes to it

The manager must be on a top layer, probably right beside the Preset Manager. Every project has available 256 IDs (0 - 255), which means a maximum of 256 different paths per program. The manager has a propertiy that allows you to enter a size value. This value is the total number of chars allowed. What you do with those chars, is totally up to you. Example:
Say, the value is 4096. That means you have a pool of 4096 characters that you can spread over up to 256 paths. If your project only needs 4 paths, each of them can have up to 1024 characters. If it needs 8 paths, each of them can have up to 512 characters, etc.

I made the path selection a seperate module so that you can exchange it with your own method, should you have one.

So, please download it, make yourself familiar with it (start by switching programs), then test it. And test it again. I hope there won't be too many issues :)
Attachments
paths_to_preset_3.fsm
(10.9 KiB) Downloaded 878 times
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Load WAVs with Preset manager?

Postby Spogg » Wed Dec 09, 2015 12:49 pm

I've done some quick tests and hit problems.
I've uploaded the modified fsm which will hopefully keep the state for you to see.

- On the "two path" preset I triggered a load with the manager set to id=0. The new path appended to the existing preset path, rather than replaced it.
- I made preset 3 "Spogg test 1" and tried to load a real wav file which I know is ok. The wave player module output state 3 with no sample rate or channels showing (stayed on zero). The path to the new file showed and stored correctly.

This is looking like it will be very useful for general use. In the meantime I have a working solution for me as per a previous post.
Many thanks for doing all this!

Cheers

Spogg
Attachments
paths_to_preset_3 spogged 1.fsm
To show the issues in the text above
(232.45 KiB) Downloaded 874 times
User avatar
Spogg
 
Posts: 3358
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England

Re: Load WAVs with Preset manager?

Postby tulamide » Wed Dec 09, 2015 1:13 pm

Spogg wrote:I've done some quick tests and hit problems.
I've uploaded the modified fsm which will hopefully keep the state for you to see.

- On the "two path" preset I triggered a load with the manager set to id=0. The new path appended to the existing preset path, rather than replaced it.
- I made preset 3 "Spogg test 1" and tried to load a real wav file which I know is ok. The wave player module output state 3 with no sample rate or channels showing (stayed on zero). The path to the new file showed and stored correctly.

This is looking like it will be very useful for general use. In the meantime I have a working solution for me as per a previous post.
Many thanks for doing all this!

Cheers

Spogg


Thank you very much for testing. I will have a closer look at what was happening with the first issue.

The second one is not an issue of the path manager (it only is for managing paths, not loading audio).

This is the path you entered (shortened to the important part): "...\Saxophone\saxophone_A3_025_fortissimo_normal.mp3"
Are you aware that you can't load .mp3 with the load wave prim? It only accepts 16-bit-pcm-wav.


EDIT: Regarding your solution please remember that the preset string is limited to 255 chars. So better not publish it until you are absolutely sure the path will never exceed that limit on any user's system!
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Load WAVs with Preset manager?

Postby Spogg » Wed Dec 09, 2015 3:00 pm

Hi again

Just had another look and the TPMS is only allowing me to choose MP3s! The folder I used has every file as MP3s and WAVs and I've been making my Q-50 with this as a test folder using .WAV as a filter. So sorry, but I didn't spot the error. I couldn't see (quickly) how to specify .WAV as a filter in the TPMS so that could do with being an input or something so we can specify.

Regarding the 255 character path length limit I very quickly looked at this:
https://msdn.microsoft.com/en-gb/librar ... 85%29.aspx

In practice do you think this would be an issue?

EDIT: Here is a path that contains 255 characters including spaces, counted in Word:

C:\Users\Spogg\VSTplugins\Testing out stuff\Flowstone\some issues still to resolve\i’ll put my test wavs here initially\this rather large folder is for my favourite drum hits\snares\pitched \Testing out stuff\Flowstone\some issues still \reverbremoved.wav :lol:

Cheers

Spogg
User avatar
Spogg
 
Posts: 3358
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England

Re: Load WAVs with Preset manager?

Postby tulamide » Wed Dec 09, 2015 7:25 pm

Spogg wrote:Hi again

Just had another look and the TPMS is only allowing me to choose MP3s! The folder I used has every file as MP3s and WAVs and I've been making my Q-50 with this as a test folder using .WAV as a filter. So sorry, but I didn't spot the error. I couldn't see (quickly) how to specify .WAV as a filter in the TPMS so that could do with being an input or something so we can specify.

Regarding the 255 character path length limit I very quickly looked at this:
https://msdn.microsoft.com/en-gb/librar ... 85%29.aspx

In practice do you think this would be an issue?

EDIT: Here is a path that contains 255 characters including spaces, counted in Word:

C:\Users\Spogg\VSTplugins\Testing out stuff\Flowstone\some issues still to resolve\i’ll put my test wavs here initially\this rather large folder is for my favourite drum hits\snares\pitched \Testing out stuff\Flowstone\some issues still \reverbremoved.wav :lol:

Cheers

Spogg


Hey Spoog,

that is not quite how the filtering works, but I agree it was a bad idea, and I will get rid of it. When you first load some string to an empty field, you can select from whatever filetype you wish. After you have loaded a path, consecutive edits for that id only allow the same filetype that is currently loaded.

Regarding the issue with a path being appended, I have to say that I can't reproduce it. Each path is ended with a NULL byte (a byte whose bits are all unset; for normal human beings this refers to 0). But bettween the two paths that show as one is no NULL byte but some other byte, and I have no clue where this comes from. Could you please start with the fresh copy of the schematic and write down all steps you do until this error occurs?

The path length being a number of 260 is just that: a number. It can be changed by Microsoft as well as by any experienced user. Nowadays harddiscs offer so much space that it is more and more likely that the folder structure exceeds 260. Don't forget that there is no real restriction for the length of filenames and foldernames. With 2 folders of 64 bytes and a filename of 128 you are already out of the allowed length for a preset string. Also, modern systems don't work with one-byte-per-char text anymore. They use encodings that can be 4 bytes per char long (for example chinese). But I'm not sure if Flowstone could even work with them. Nonetheless, I wouldn't just hope 255 chars will do. But of course, that's your decision. The whole purpose of TPMS is to undergo the preset string restriction to be able to cope with paths of any length.

EDIT: Here's a real-life path from my system. It's not the deepest one I have, but already 148 chars. "C:\Dokumente und Einstellungen\user\Eigene Dateien\Reason Projekte\Patches\Sonatina Symphonic Orchestra\Samples\Bass Trombone\bass_trombone-c#3.wav"
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Load WAVs with Preset manager?

Postby Spogg » Thu Dec 10, 2015 10:38 am

First off you should know that it's considered a major insult when a Vulcan sees his name spelt wrong :lol:

OK so here's what I did, and what I did is based purely on ignorance of what I'm probably supposed to do:

Open the fsm
Change from preset 2 to 1 and back to 2
Change the ID int from 0 to 1 (expecting to update ID 1 path string)
Trigger a load
The path gets appended to ID 0 string (not overwriting path ID 1 as I expected)

I take on board and accept what you said about path length. If my Q-50 is ready before this is solved I'll upload it with the "feature" described. It's turned out to be a huge undertaking so that may not be soon.

Cheers

Spogg

:lol:
User avatar
Spogg
 
Posts: 3358
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England

PreviousNext

Return to General

Who is online

Users browsing this forum: No registered users and 48 guests