473,672 Members | 2,683 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Question: Any idea of midi programming ?

Hi,
I'm looking for any source-code example, showing the use of midi sequencer
and midi messages in C++.
Which files have to be included ?

I wrote a tool in JAVA which has bad timing problems especially whith
WindowsXP and hope to find a solution in C++.

Can anyone recommend some good books or websites about the topic ?

Thanks in advance.
Michael.
Jul 19 '05 #1
6 4143
"Michael" <m.*****@gmx.ne t> wrote...
Hi,
I'm looking for any source-code example, showing the use of midi sequencer
and midi messages in C++.
Which files have to be included ?


The Standard C++ (the only subject of this newsgroup) has no means
of programming a midi sequencer. You will have to use some kind of
a special library. Such library (since it has nothing to do with
the Standard C++) would be off-topic here. You might want to try
asking in a newsgroup dedicated to your platform. I recommend
comp.os.ms-windows.program mer. Another possible source of info is
a newsgroup with 'midi' in its name.

Victor
Jul 19 '05 #2
Sure, it's a valid topic for this newsgroup. It's comp.lang.c++ NOT
comp.lang.c++.s tandard .

I know there are some C++ libraries out there. Check out STK (Synthesis
ToolKit) I think it may have some MIDI capabilities.

--
Kevin Buffardi
"Rockstars -- is there
anything they don't know?"
-Homer Simpson
Jul 19 '05 #3
"Kevin Buffardi" <kb******@mwc.e du> wrote...
Sure, it's a valid topic for this newsgroup. It's comp.lang.c++ NOT
comp.lang.c++.s tandard .


I don't want to go into a lengthy discussion about the topicality
of this newsgroup with you. Check http://groups.google.com to
satisfy your curiousity. Here is a hint, though: it's comp.LANG.c++,
not comp.HOWDOIPROG RAMWHATEVERUSIN G.c++.
Jul 19 '05 #4
> I don't want to go into a lengthy discussion about the topicality
of this newsgroup with you. Check http://groups.google.com to
satisfy your curiousity. Here is a hint, though: it's comp.LANG.c++,
not comp.HOWDOIPROG RAMWHATEVERUSIN G.c++.


The newsgroup serves discussion of a programming language. Naturally,
people are going to want to know how to implement the language in different
manners. More or less, Michael was asking what libraries were available to
help him in what he wanted to do. I don't see any reason why he should get
any blame for doing this. Similarly, he should be able to post the same
thing in a MIDI newsgroup because it involves people who have experience
with the group who could possibly provide him some insight. I'd certainly
welcome such questions more than the overdone "Is C++ better than C" posts.

Let me again point out that this newsgroup is for the language C++. The
newsgroup name does not imply anything about ONLY discussing standard C++.
It was kind of you to point out other newsgroups that may help him better,
but who made you the CLC++ police?

--
Kevin Buffardi
"Rockstars -- is there
anything they don't know?"
-Homer Simpson
Jul 19 '05 #5
Kevin Buffardi wrote:
I don't want to go into a lengthy discussion about the topicality
of this newsgroup with you. Check http://groups.google.com to
satisfy your curiousity. Here is a hint, though: it's comp.LANG.c++,
not comp.HOWDOIPROG RAMWHATEVERUSIN G.c++.
The newsgroup serves discussion of a programming language.


Yes, a LANGUAGE. Not any library written in or for it, except for the
standard library, since it's part of the language.
See http://www.parashift.com/c++-faq-lit...t.html#faq-5.9 which
is part of the official FAQ to this group (and one should actually
always have a look into the FAQ of a group or at least read a bit in
that group before posting)
Naturally, people are going to want to know how to implement the
language in different manners. More or less, Michael was asking
what libraries were available to help him in what he wanted to do.
That hasn't anything to do with implementing the language, so what's
your point?
I don't see any reason why he should get any blame for doing this.
He didn't get blame. He was politely told that his question is off-topic
here and redirected to a more appropriate place. Some consider this to
be blame, but it's not, and it's not meant to be.
Similarly, he should be able to post the same thing in a MIDI
newsgroup because it involves people who have experience
with the group who could possibly provide him some insight.
Usenet isn't built upon posting questions to places where people seem to
be likely to know the answer, but upon topics. This makes it easier to
select and read the newsgroups that you're most interested in without
getting to much "noise" that is actually not what you're interested in.
And most newsgroups have a welcome message and/or FAQ that exactly
tells you what the topic of the group is, since it's not always
obvious.
I'd certainly welcome such questions more than the overdone "Is C++
better than C" posts. Let me again point out that this newsgroup is
for the language C++.
Yes, and _only_ for the language itself.
The newsgroup name does not imply anything about ONLY discussing
standard C++.
It does. the "lang" in the name means that it's about the language
itself, not about OS-specific libraries or other extensions to it. And
the language C++ is defined by the ISO standard. Also, the welcome
message that is posted here regularly (and btw. was posted today - see
<bn************ *@ID-27262.news.uni-berlin.de> or
http://www.slack.net/~shiva/welcome.txt) shows you the topic.
It was kind of you to point out other newsgroups that
may help him better, but who made you the CLC++ police?


Would you prefer if nobody at all answers a question if it's off-topic
instead of helping the OP to find a better place for it?

Jul 19 '05 #6
> Yes, a LANGUAGE. Not any library written in or for it, except for the
standard library, since it's part of the language.
See http://www.parashift.com/c++-faq-lit...t.html#faq-5.9 which
is part of the official FAQ to this group (and one should actually
always have a look into the FAQ of a group or at least read a bit in
that group before posting)


Touche. I guess I'll just have to be the dissenting voice against what has
been accepted as rule here. It's obnoxious to be told you can't ask a
quorum of knowledgable C++ programmers if they know of any __C++__ libraries
so you can perform an operation not available with the standard libraries.
That said, I hope he found what he was looking for -- I was able to suggest
a starting place.
More or less, Michael was asking
what libraries were available to help him in what he wanted to do.


That hasn't anything to do with implementing the language, so what's
your point?


Sure it does. C++ doesn't have any built-in functions dealing with MIDI and
he needed to know what he needed so he _could_ do it with C++. The library
he finds should be written in C++ and his own application will extend off of
that.

To clear things up, I applauded Victor for trying to point Michael in the
right direction. My objection is when posters reject questions related to
C++ as off topic because they require non-standard convensions. If Michael
was asking how to install his sound card, I'd agree with you. However, he
wanted to figure out how to manipulate MIDI in a program written in C++.
Comp.lang.c++ is a natural place to seek out such an answer. Even if the
group's FAQ deems it "off topic" I encourage any question that's related to
programming in C++ (whether standard or not) and if you guys refuse to help,
I'll do my best to compensate for your unwillingness.

--
Kevin Buffardi
"Rockstars -- is there
anything they don't know?"
-Homer Simpson
Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1228
by: Mad Scientist Jr | last post by:
I came across a book titled "Maximum MIDI, Music Applications in C++" by Paul Messick, that is supposed to be pretty good for writing MIDI applications. Is there a comparable book or any good Web sites that cover this for ..NET (VB or C#) ? Thanks in advance for any information...
4
1061
by: LJK | last post by:
I need to write some classic C code in Visual Studio. As I have to write it using Visual C++.net, I guess it will be translated to MSIL and later run in .NET CLR. Can I still make ordinary framework-independent object code and how? Perhaps some compiler switches?
1
4379
by: Rein Petersen | last post by:
Hi Folks, I wondered if anyone had any suggestions how you could use C# (.net) to create midi programs (recording, playing midi...) Rein
4
2691
by: sreekant | last post by:
Hi folks I hope someone here might be able to help. I scavenged some info and even code from the net and am trying to write a module that reads a text file and spits out a midi file. So far I managed to make it work to the level of reading a text file with appropriate notes, octaves, transposing, volume, aftertouch, polyphony, channeltouch etc.
0
885
by: helorlove | last post by:
I hava a question that how can I get data from a DataSource by programming so I can do something?
4
2418
by: dbojan | last post by:
The rhythm giving midi file will be one track.Like midi drummer.And on the other midi file -the rhythm taker -we will place our notes regardless of their length (if they are chords no problem) and they will have the first midi file's durations-midi drummer's rhythm. Bojan Dragosavac
0
1292
by: dbojan | last post by:
The rhythm giving midi file will be one track.And on the other midi file -the rhythm taker -we will place our notes regardless of their length (if they are chords no problem) and they will have the first midi file's durations and their own pitch,velocities. Advanced version could save their relative rhythm pattern and fit it into the general -so if we wanted one group of notes to be played they would be played faster if they need to catch...
1
1365
by: fankaiz | last post by:
I'm programming socket in Linux enviromnet. In the server side, when I want to bind a socket with any available port(by set sin_port to 0), I want to know how can I get to know which port is exactly used? Thanks~
1
1039
by: crazy works | last post by:
hello, i have a small hard question , i really wish to find the answer soon here because iam look for that answer for 3 days and i got no success , well , iam not a professional in the php programming but iam trying to be good as i can on it so about the question , just iam trying to complete my second script programming , i want to make adding topics system , i want to let the visitor be able to add any mount of pictures inside...
0
8486
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8404
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8931
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8680
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7446
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5705
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4418
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2063
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1816
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.