Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I am not able to add silences in a track #166

Open
francowanseele opened this issue Oct 11, 2022 · 2 comments
Open

I am not able to add silences in a track #166

francowanseele opened this issue Oct 11, 2022 · 2 comments

Comments

@francowanseele
Copy link

Hello! I have been working with this tool since a long time.

I am creating tracks with different sounds and works perfect! But I want to introduce silences and I can't.

To add notes I do the following:

track.addNote({
    name: nota,
    time: timeStart + timePartialSec,
    duration: figuraSec,
});

And to add silences I try with the following, but instead of silences, a strange sound is played in the background

track.addNote({
    midi: 0,
    time: timeStart + timePartialSec,
    duration: figuraSec,
});

Any idea how to make silences appear?

Thank you 💪

@Guseyn
Copy link

Guseyn commented Jul 24, 2023

For now I am using very high octave like 20 to make a sound silent. It's my temporary workaround, in the future I would probably use dynamic effects, not quite sure how yet.

@Guseyn
Copy link

Guseyn commented Jul 24, 2023

@francowanseele I think I found how to manipulate volume, it's a control change with number 7, here is the full list of those control changes: https://nickfever.com/music/midi-cc-list
Also you can find in Readme file in this repo how you can add those in the track. I suspect the value for this control change should be 0, but I am not 100% sure. I need to test it, but you can also try.
I think that manipulation with high octave is much easier in some cases, but it's up to you to decide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants