yl_sounds, yl_piano #7016

Open
opened 2024-06-30 03:29:32 +02:00 by AliasAlreadyTaken · 2 comments

Let's implement a piano in a game, where a user can enter a melody and the piano would then play it. The notation must be ASCII or compatible. It must have only one tune, the pitch of which is then altered to play other tunes and the length of which is cut for shorter notes.

A whole notes is usually 4 seconds?

Since there are 60 seconds in one minute, and four beats per measure (aka full note): 4 beats × 1 minute ÷ 60 seconds = 0.0667 minutes (or approximately 4 seconds) Is that somewhat right?

The base tune "normal A" is 440 Hz? Means, if we store a 4 second ogg of 440 Hz, we can then cut it for shorter notes and alter the pitch according to some modifier, to get all other tunes?

Let's implement a piano in a game, where a user can enter a melody and the piano would then play it. The notation must be ASCII or compatible. It must have only one tune, the pitch of which is then altered to play other tunes and the length of which is cut for shorter notes. A whole notes is usually 4 seconds? Since there are 60 seconds in one minute, and four beats per measure (aka full note): `4 beats × 1 minute ÷ 60 seconds = 0.0667 minutes (or approximately 4 seconds)` Is that somewhat right? The base tune "normal A" is 440 Hz? Means, if we store a 4 second ogg of 440 Hz, we can then cut it for shorter notes and alter the pitch according to some modifier, to get all other tunes?

In laggy conditions, I would imagine this mod would not perform well with lots of quarter/half notes

In laggy conditions, I would imagine this mod would not perform well with lots of quarter/half notes

Also, what base sound do you want? A raw waveform? some recording of a real instrument?

Also, what base sound do you want? A raw waveform? some recording of a real instrument?
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: your-land/bugtracker#7016
No description provided.