Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5961479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:58:14+00:00 2026-05-22T18:58:14+00:00

I am trying to visualise in flash midi file (using an external midi-to-flash library)

  • 0

I am trying to visualise in flash midi file (using an external midi-to-flash library)

Is there a way to tell the difference between Violin, Viola, Cello & Contrabass in a midi file. I get these values for instruments (ignore the numbers):

1 Flute 13

2 Oboe 15

3 Clarinet 14

4 Bassoon 16

5 French Horn 18

6 Trumpet 17

7 Timpani 26

8 String Ensemble 1 3

9 String Ensemble 1 3

10 String Ensemble 1 3

11 String Ensemble 1 3

12 String Ensemble 1 3

13 Acoustic Grand Piano 5

14 Acoustic Grand Piano 5

15 Acoustic Grand Piano 5

16 Acoustic Grand Piano 5

As you can see, all the strings get the same “String Ensemble” value…

one way to do it is to ask for each note if it is high (65>) or low (50<) etc and by that deciding roughly the instrument type (for a specific note). but since these values are random and not accurate – that doesn’t seperate them right (especially since diffrent tools still have shared note height values).

  1. Is it written (cello, violin…) somewhere in the midi file?

  2. Is there a way to assume it?

  3. I have 5 tracks of strings. is it possible to assume (for example) that the first 2 are violins, 3rd is Cello etc? or they are all mixed?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T18:58:15+00:00Added an answer on May 22, 2026 at 6:58 pm

    In short, no.

    What you are seeing are simple General MIDI patches. However, how these instruments sound depend on the synthesizer generating the sound, and are not defined by MIDI. It is completely possible to pick entirely different instruments than the patches shown.

    That being said, 41 is defined as violin, 42 is viola, 43 is cello, and 44 contrabass. But, don’t expect them to always be used in this manner.

    As far as 1st/2nd violins, this depends on how the person decided to make the MIDI file, and there is no programmatic way to find that. For instance, if the instrument patch is the same, I’d expect that all of the usage of that instrument would be on one channel. Unless the software they were using decided to split it up for some reason. (For example, if the source score had it split up.)

    I believe a MIDI file has some room for track names and such, but you won’t see them in every MIDI file, and they are free-form names, so they won’t be labeled in any way that you can use programmatically.

    MIDI is only for controlling of synthesizers, and isn’t intended to represent a musical score like we humans understand.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to implement a test project using the Point Cloud Library and
I'm trying to find an effective way to visualise feedback from some real-world sensors
Is there a file format limit to the PNG pixel size? I am trying
I have some data about a day's events that I'm trying to visualise as
Trying to do this sort of thing... WHERE username LIKE '%$str%' ...but using bound
I'm using matplotlib at the moment to try and visualise some data I am
I am trying to visualize the decision boundary when using a Bayesian classifier in
I'm trying to visualize an xhtml file, looks great on Webkit ( Chrome, Safari,
I'm trying to use an open source java library to visualize nodes and edges
I'm trying to build an mp3 player for my site using JavaScript (and any

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.