Please consider registering

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
Digisynth = open file dialog for FOLDER (not .wav) ?
No permission to create posts
September 20, 2017
12:34 pm
Forum Posts: 32
Member Since:
November 1, 2016
sp_UserOfflineSmall Offline

Hello !

as i said in the title, in the synth book it's written that it's possible to select the sample path with the "initwithuserwavfile() function".

it seem that is for .wav file. so for single sample.

But what about loading multisamples (a folder so) with open dialog box ?

i use a load/save function in minisynth for creating/loading presets with a variation of the function above. but it always ask a single file with an extension, not a folder.


Anyone know how implement in digisynth a way to open/choose multisamples folder instead of harcoding the path (as it could be in the original digisynth constructor) ?


thanks in advance.



September 23, 2017
10:23 am
Forum Posts: 32
Member Since:
November 1, 2016
sp_UserOfflineSmall Offline

after reflection I do not try to give access to the folder for users.
as Will wrote in the synth book it is better to leave it "invisible".

what I'm looking for is having multiple multisamples, but with the same oscillator.
currently each multisample path is associated with 1 oscillator. if you have 300 multisamples you have to parameter 300 oscillators.
so what I want is hardcoder the paths of each file, but give them access to 1 oscillator via a controller UINT (kind m_uFolders)
what do I need to change for that?

thank you in advance.


September 26, 2017
11:40 am
W Pirkle
Forum Posts: 249
Member Since:
January 29, 2017
sp_UserOfflineSmall Offline

It sounds like you just need an array of paths. Nowadays, I would do this with a std::vector of std::string items, but you could also do it the old way with char*s:

// ------- FOR MULTI SAMPLES ------- //

char* pPath0 = addStrings(getMyDLLDirectory(),"\\MultiSamples\\Heaver");

char* pPath1 = addStrings(getMyDLLDirectory(),"\\MultiSamples\\OldFlatty");

// --- array of paths

char* paths[2];

paths[0] = pPath0;

paths[1] = pPath1;

// --- this would be set with a GUI control or...

UINT pathChoice = 1;

// to speed up sample loading, init the first voice here

// --- init false, false = NOT single-sample, NOT pitchless sample

if(!m_pVoiceArray[0]->initOscWithFolderPath(0, paths[pathChoice], false, false))

     return false;

How you get the pathChoice from the user is your problem.

Another thing to remember is that loading those arrays of samples is time consuming, in part due to the fact that the WAV file needs to be parsed, but also because with multisamples, there could be dozens of files per folder. You will need to figure out how to unload the old multisamples, and then load new ones based on the pathChoice from the user. Of course if the user is playing the synth while making the change, you would need to shut off all voices and disallow MIDI input until the new samples were loaded into the oscillator objects. 

- Will

September 27, 2017
6:47 am
Forum Posts: 32
Member Since:
November 1, 2016
sp_UserOfflineSmall Offline

it seem that is exactly what i want 😀

tested and : yes, it is.

So for now i must work on the GUI control setting for pathChoice (nedd some hard work for me). it will be done till weeks 🙂


you quasi did the job, i must work a little too ... 😉



October 2, 2017
11:43 am
Forum Posts: 32
Member Since:
November 1, 2016
sp_UserOfflineSmall Offline

I am blocked.
I tried by all means.
I do not know if it is really possible.
I'm going to have to do something else. never mind.

🙁 🙁 🙁

Forum Timezone: America/New_York

Most Users Ever Online: 36

Currently Online:
3 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Skyler: 48

Derek: 46

Peter: 41

Frodson: 40

clau_ste: 39

Gwen: 32

JimmyM: 30

TheSmile: 27

EZB: 24

lppier: 23

Member Stats:

Guest Posters: 1

Members: 523

Moderators: 1

Admins: 4

Forum Stats:

Groups: 11

Forums: 31

Topics: 546

Posts: 2138

Newest Members:

rawbirdtoe, Bill, hill william, NAUN_SONAR, sufy, Diane, Richard, drvenkman, venkman, Jfx

Moderators: W Pirkle: 249

Administrators: Tom: 67, JD Young: 80, Will Pirkle: 0, W Pirkle: 249