Previous Thread
Next Thread
Print Thread
Page 41 of 41 1 2 39 40 41
Re: 8bit Apples - Apple I, II, /// and the 16 bit GS [Re: Golden Child] #115379
06/02/19 02:33 PM
06/02/19 02:33 PM
Joined: Feb 2014
Posts: 259
G
Golden Child Offline
Senior Member
Golden Child  Offline
Senior Member
G
Joined: Feb 2014
Posts: 259
More silly fun:

You midi guys would know all of this stuff, but I just discovered the virtual midi piano keyboard (vmpk) and it's pretty cool if you don't have a real midi keyboard handy.

./mame64 apple2p -sl2 midi -verbose -flop1 ../../Passport\ designs\ -\ Master\ tracks\ v1.8.dsk -snapsize 560x384 -debug -midiout "VMPK Input" -midiin "VMPK Output" -log

I also installed fluidsynth for linux so I can get some midi sounds too.

Now I get a bunch more items when I listmidi:

Code
./mame64 apple2e -listmidi

MIDI input ports:
Midi Through Port-0 (default)
Portable Grand MIDI 1 
VMPK Output 

MIDI output ports:
Midi Through Port-0 (default)
Portable Grand MIDI 1 
Synth input port (20027:0) 
VMPK Input 
qjackctl 


./mame64 apple2p -sl2 midi -verbose -flop1 ../../Passport\ designs\ -\ Master\ tracks\ v1.8.dsk -snapsize 560x384 -debug -midiin "Virtual Keyboard" -log -midiout "Synth input port (20027:0)"

On ubuntu, just "sudo apt install vmpk fluidsynth" and get a soundfont2 from the net (I got the General User one)

[Linked Image]

Re: 8bit Apples - Apple I, II, /// and the 16 bit GS [Re: rfka01] #115408
06/09/19 01:21 AM
06/09/19 01:21 AM
Joined: May 2006
Posts: 123
F
Firehawke Offline
Senior Member
Firehawke  Offline
Senior Member
F
Joined: May 2006
Posts: 123
[Linked Image]
This is a glaring omission that has now been corrected. I'll PR this addition tonight.

Re: 8bit Apples - Apple I, II, /// and the 16 bit GS [Re: Golden Child] #115456
06/23/19 11:51 AM
06/23/19 11:51 AM
Joined: Feb 2014
Posts: 259
G
Golden Child Offline
Senior Member
Golden Child  Offline
Senior Member
G
Joined: Feb 2014
Posts: 259
Hi Arbee,

I was looking at how mame hooks up to the midi with portmidi src/osd/modules/midi/portmidi.cpp and it seems that it doesn't pass the 1 byte messages through like F8 (timing clock).


Code

int osd_midi_device_pm::read(uint8_t *pOut)

...

                                case 0xf:   // system common
                                        switch (status & 0xf)
                                        {
                                                case 0: // System Exclusive
                                                {
                                                        *pOut++ = status;   // this should be OK: the shortest legal sysex is F0 tt dd F7, I believe
                                                        *pOut++ = (rx_evBuf[msg].message>>8) & 0xff;
                                                        *pOut++ = (rx_evBuf[msg].message>>16) & 0xff;
                                                        uint8_t last = *pOut++ = (rx_evBuf[msg].message>>24) & 0xff;
                                                        bytesOut += 4;
                                                        rx_sysex = (last != MIDI_EOX);
                                                        break;
                                                }

                                                case 7: // End of System Exclusive
                                                        *pOut++ = status;
                                                        bytesOut += 1;
                                                        rx_sysex = false;
                                                        break;

                                                case 2: // song pos
                                                case 3: // song select
                                                        *pOut++ = status;
                                                        *pOut++ = Pm_MessageData1(rx_evBuf[msg].message);
                                                        *pOut++ = Pm_MessageData2(rx_evBuf[msg].message);
                                                        bytesOut += 3;
                                                        break;

                                                default:    // all other defined Fx messages are 1 byte

                                                        *pOut++ = status;             // shouldn't we pass the 1 byte messages along?
                                                        bytesOut += 1;
                                                        break;
                                        }





Also if I read it correctly, 0xF3 (song select) should only supply 2 bytes (status + 1 data byte).


http://www.personal.kent.edu/~sbirch/Music_Production/MP-II/MIDI/midi_protocol.htm
http://www.personal.kent.edu/~sbirch/Music_Production/MP-II/MIDI/midi_system_common_messages.htm
http://www.personal.kent.edu/~sbirch/Music_Production/MP-II/MIDI/midi_system_real.htm

Re: 8bit Apples - Apple I, II, /// and the 16 bit GS [Re: rfka01] #115457
06/23/19 12:11 PM
06/23/19 12:11 PM
Joined: Mar 2001
Posts: 16,231
USA
R
R. Belmont Online content
Very Senior Member
R. Belmont  Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,231
USA
Thanks! You missed a detail or two but it's fixed in GitHub top-of-tree now smile

Re: 8bit Apples - Apple I, II, /// and the 16 bit GS [Re: R. Belmont] #115458
06/23/19 05:24 PM
06/23/19 05:24 PM
Joined: Feb 2014
Posts: 259
G
Golden Child Offline
Senior Member
Golden Child  Offline
Senior Member
G
Joined: Feb 2014
Posts: 259
Originally Posted by R. Belmont
Thanks! You missed a detail or two but it's fixed in GitHub top-of-tree now smile



Thanks, RB! I always miss those details 8-)

Page 41 of 41 1 2 39 40 41

Who's Online Now
3 registered members (Cpt. Pugwash, EoceneMiacid, Fake Shemp), 149 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,664
Posts113,575
Members4,848
Most Online324
Dec 20th, 2018
Powered by UBB.threads™ PHP Forum Software 7.6.1.1
(Release build 20180111)
Page Time: 0.049s Queries: 15 (0.032s) Memory: 5.6814 MB (Peak: 5.8642 MB) Zlib enabled. Server Time: 2019-07-15 18:32:23 UTC