Page 1 of 1

Send the following sample name via OSC

Posted: 15 Sep 2022, 19:31
by cmodica
Hello.
I have a list of samples in a sampler.
I can easily send to a smartphone, via OSC, the name of the current sample in the list.
But I would like to send the name of the next sample in the list.
Does anyone have a way to extract the short name of the next sample in the sampler list?

Thank you.

Re: Send the following sample name via OSC

Posted: 16 Sep 2022, 07:33
by SylvainT
Hello,

Very simple. Add a combobox or a listbox. Wire the commatext output of the sampler to the commatext input of the combobox. Then send the text out of the combobox to your OSC send module. Between sample number and combobox, add +1.

Sylvain

Re: Send the following sample name via OSC

Posted: 16 Sep 2022, 07:51
by cmodica
Thank you.
I didn’t think about the combo box.
I patch it today.

Re: Send the following sample name via OSC

Posted: 21 Sep 2022, 12:40
by cmodica
Thank you, it works.

But I would like only the title to be displayed.
For the moment I get the path, title and extension of the file via the Text output of the Combobox or Listbox.

How can I hide the path and file extension, as it is done via the "Short file name" option in the sampler?

Re: Send the following sample name via OSC

Posted: 21 Sep 2022, 14:58
by cmodica
I found the solution. 8)

I use a "Flie List Manager" and a "File Delete Extension" modules instead of a Combobox or ListBox. Witht the "File List Manager" there is the possibility to connect the "Short File Name" output.
But there is an other way to patch it with a Combobox or Listbox. It need to patch the text output to "File extract Name" module and a "File Delete Extension" modules.

There is so many modules in HH, and so much way to patch the same thing.
solution-2.jpg
solution-1.jpg

Re: Send the following sample name via OSC

Posted: 21 Sep 2022, 20:03
by SylvainT
Great. Remember you have an option in the combobox or list box to hide the path and extension. No patching needed.

Re: Send the following sample name via OSC

Posted: 22 Sep 2022, 11:05
by cmodica
Yes it is right. This option hide the path and the extension in HH but there are not hide when i patch the Text Output in the OSC data 1.
It is like there are hide in HH but not via the Text output of the module.

Re: Send the following sample name via OSC

Posted: 22 Sep 2022, 12:51
by senso
yes it's only a display option and it doesn't affect the output.
to modify the output use filename-extract-name and filename-extract-extension modules.

Re: Send the following sample name via OSC

Posted: 22 Sep 2022, 13:37
by cmodica
Yes. That is what i have done.
Thank you.

Re: Send the following sample name via OSC

Posted: 22 Sep 2022, 18:35
by SylvainT
Oups, you're right 😁

Re: Send the following sample name via OSC

Posted: 22 Sep 2022, 20:46
by cmodica
Don’t worry. I am Happy to be sure you are a real human. :lol:
Thank you.