블로그 이미지
안녕하세요? 이안입니다. 과학의 모든것을 좋아합니다. 이안김

카테고리

분류 전체보기 (478)
NOTICE (14)
SALE (7)
자유 게시판 (40)
◆ APPLE II (53)
◆ SD Smart Drive (14)
◆ SD DISK II Emulator (84)
◆ SD Music card (28)
◆ SD MIDI ][+ (21)
◆ Mockingboard 4c (19)
◆ Hyperion 512K RAM+ (5)
◆ Accelerator (10)
◆ PS2 Adapter (8)
◆ Z80 Card (24)
◆ APMSX (26)
◆ APV40 (0)
◆ FC-150 (15)
◆ i86 PC (20)
◆ MPU 관련 (9)
◆ CPLD (1)
◆ RF (5)
◆ 진공관및 오디오 (28)
◆ AutoBike (13)
◆Other (27)
비공개 연구실 (0)
★ 개인방 (1)
스크랩 (0)
임시보관함 (0)
Total159,084
Today23
Yesterday20

달력

« » 2022.8
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

공지사항

'2022/08'에 해당되는 글 2건

  1. 2022.08.03 Using MIDI card on BASIC (2)
  2. 2022.08.02 Using MIDI card on BASIC

 

Before explaining the new MIDI command,

I asked last time you to learn about Note ON and Program Change.

Have you learned it?

You need to learn this 'Note ON' and 'Program Change'

 

As you tested it, It plays one single voice.

Now You can learn how to Play more voices at the same time.

For Example, to play Do Mi Sol at the same time,

In Piano, You have to push Do, Mi, Sol at the same time.

It could achieve just Keep push Do, Mi,Sol  note at the same time.

Pressing Keyboard is the 'Note ON'.

So, you just send this MIDI data.

And if you want OFF the sound,

Just send 'Note OFF' to the channel.

 

To play Notes, You have to Know the MIDI keyboard numbers as attached.

 

Find the Do, Mi, Sol and It is 60,64,67 

So add code as under..

10 AC = 49320 

20 AD = 49321 

100 POKE AC,19: POKE AC,17 

200 POKE AD,144: POKE AD,60: POKE AD,127

210 POKE AD,144: POKE AD,64: POKE AD,127

220 POKE AD,144: POKE AD,67: POKE AD,127

 

* This 144 is 'NoteON' MIDI  command

 

And Run it

 

]RUN

 

If you want a small delay between NOTE ON

 

205 GOSUB 300

215 GOSUB 300

299 END

 

300 FOR D=1 TO 100:NEXT D

399 RETURN

 

Now, You could have step Playing notes.

 

And now, you will learn about 'Note OFF'

Note off is release your keyboard.

Note ON is pressing the keyboard now release the keyboard is Note OFF.

 

You can do it as 80h+Channel

So if you want '1st channel Note OFF'

POKE AD,128: POKE AD,64: POKE AD,127

 

Then The sound would off the keyboard.

 

Now, you learned 

Note ON

Program Change

Note OFF

and simple delay.

 

It is a very simple guide and would like this MIDI approach by BASIC code.

For more tricks, You need to learn some more about MIDI commands.

Hope you enjoy it.

 

Thanks

Ian Kim

 

'◆ SD MIDI ][+' 카테고리의 다른 글

Using MIDI card on BASIC (2)  (0) 2022.08.03
Using MIDI card on BASIC  (0) 2022.08.02
SD MIDI ][+ card and user's manual  (0) 2022.06.03
New MIDI ][+ is under testing  (0) 2022.05.24
Revised SD MIDI ][+ card coming soon  (0) 2022.05.13
SD MIDI ][+ Player Ver. 0.2K  (0) 2021.07.10
Posted by 이안김

댓글을 달아 주세요

 

Hi Friends and customers,

 

I would like to explain how to use SD MIDI ][+ on BASIC.

SD MIDI ][+ card with a sound module, it would make a MIDI sound card for APPLE II.

But, unfortunately, APPLE II has limited Software to play MIDI sound.

SD MIDI ][+ users could play *.MID songs with MIDI Player.

And I believe that someday people would like to play MIDI card for better sound on APPLE II.

I will explain how to use SD MIDI ][+ card on BASIC in this column.

Users can use it in a straightforward way on BASIC.

Play Note and Stop the Note and with proper delay, It could be a MIDI song player.

 

Let's start to play BASIC for MIDI sound.

 

Try this code to make Sound.

*You need to key in all BASIC code, it would make you understand it.

** SD MIDI ][+ need to SLOT#2.

 

10 AC = 49320 ;Slot #2. MIDI control port

20 AD = 49321 ;Slot #2, MIDI Data port

100 POKE AC,19: POKE AC,17 ;MC 6850 init

200 POKE AD,144: POKE AD,50: POKE AD,127 ; Send data

 

]RUN

 

Can you hear any sound?

If there is no sound, try to check if card SLOT #2 and Speaker are ON.

 

If you could hear sound.. it is the easiest way to use MIDI card on your APPLE II.

And Now, let's change the musical instrument to another.

Add this code.

 

110 POKE AD,192: POKE AD,127

 

And RUN it

 

]RUN

 

And now,

What do you hear?

Did you still think making MIDI sound is hard on APPLE II?

 

Now, you need to learn the Data that it sent..

The code of POKE AD,( )

You may need to find the MIDI specification.

 

And What I tested in the code..

NOTE ON

and

Program Change

 

Thanks

 

 

'◆ SD MIDI ][+' 카테고리의 다른 글

Using MIDI card on BASIC (2)  (0) 2022.08.03
Using MIDI card on BASIC  (0) 2022.08.02
SD MIDI ][+ card and user's manual  (0) 2022.06.03
New MIDI ][+ is under testing  (0) 2022.05.24
Revised SD MIDI ][+ card coming soon  (0) 2022.05.13
SD MIDI ][+ Player Ver. 0.2K  (0) 2021.07.10
Posted by 이안김

댓글을 달아 주세요

최근에 달린 댓글

최근에 받은 트랙백

글 보관함