Welcome to %s forums

BrainModular Users Forum

Login Register

Send the following sample name via OSC

I need help on a Patch
Post Reply
User avatar
cmodica
Member
Posts: 606
Location: Pélissanne
Contact:

Send the following sample name via OSC

Unread post by cmodica » 15 Sep 2022, 19:31

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.

SylvainT
Site Admin
Posts: 494
Contact:

Unread post by SylvainT » 16 Sep 2022, 07:33

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

User avatar
cmodica
Member
Posts: 606
Location: Pélissanne
Contact:

Unread post by cmodica » 16 Sep 2022, 07:51

Thank you.
I didn’t think about the combo box.
I patch it today.

User avatar
cmodica
Member
Posts: 606
Location: Pélissanne
Contact:

Unread post by cmodica » 21 Sep 2022, 12:40

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?

User avatar
cmodica
Member
Posts: 606
Location: Pélissanne
Contact:

Unread post by cmodica » 21 Sep 2022, 14:58

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

SylvainT
Site Admin
Posts: 494
Contact:

Unread post by SylvainT » 21 Sep 2022, 20:03

Great. Remember you have an option in the combobox or list box to hide the path and extension. No patching needed.

User avatar
cmodica
Member
Posts: 606
Location: Pélissanne
Contact:

Unread post by cmodica » 22 Sep 2022, 11:05

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.

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 22 Sep 2022, 12:51

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.

User avatar
cmodica
Member
Posts: 606
Location: Pélissanne
Contact:

Unread post by cmodica » 22 Sep 2022, 13:37

Yes. That is what i have done.
Thank you.

SylvainT
Site Admin
Posts: 494
Contact:

Unread post by SylvainT » 22 Sep 2022, 18:35

Oups, you're right 😁

User avatar
cmodica
Member
Posts: 606
Location: Pélissanne
Contact:

Unread post by cmodica » 22 Sep 2022, 20:46

Don’t worry. I am Happy to be sure you are a real human. :lol:
Thank you.

Post Reply

Who is online

Users browsing this forum: No registered users and 101 guests