Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-12-2008, 01:36 AM
Senior Member
 
Join Date: Dec 2007
Location: Spain
Posts: 233
willemjav is on a distinguished road
PASCAL & JAVA? for senior members
I would like to reanimate a twenty-year-old Pascal code. The code controlled a small yamaha sound module called FB01, a little black box that did many things which other synthesizer could not do (such as micro tones). The FB01 and the Pascal program formed the electronic component of a composition, on text of Apollinaire, called Cités for voice, cello and live electronics. See WILLEM DRAGSTRA WEB SITE under recordings for a sound sample (sorry for some clipping).

The program sets a clock, uses a foot switch (plugged in the left mouse button) and sends midi-codes out. It was written for an old Atari-st computer which is not around anymore.

The ideal would be to get it going (again) on a pc or better mac book. Another idea is to transelate it all into JAVA or MAX-MSP.
The problem could be:
1) setting the clock (modern comp are much faster)
2) sending midi codes (midiport)
3) changing the pedal/ left mouse button into midi(-in)pedal
One can find the complete code which is very extended at WILLEM DRAGSTRA WEB SITE. After writing the code 20 years ago I have some hard time understanding it (HAHAHA, one grows old).

wilemjav
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-13-2008, 06:06 AM
fishtoprecords's Avatar
Senior Member
 
Join Date: Jun 2008
Posts: 255
fishtoprecords is on a distinguished road
A MIDI port is just slow serial communications. It should be doable, but I haven't tried to program any serial I/O in a decade.

I don't think you need to slow the CPU clock, you just need a timer loop to output the MIDI sequence at the proper, and very slow, speed.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 07-13-2008, 12:11 PM
Senior Member
 
Join Date: Dec 2007
Location: Spain
Posts: 233
willemjav is on a distinguished road
Yes, fishtoprecords, there is a clock set:

include 'midi.def';
include 'clock.inc';

I suppose the next code starts the clock:

clkset(6,klok); (klok is the dutch Word for clock and is here a constant of 237)

I do not know what the two parameters mean (do not remember).

There is a lot of stuff going on like this:
if (clkpls>=(i1*3)) and (i1<50) then
begin
i1:=i1+1; {crescendo}
midi_vel(1,8,77+i1);
end;

I suppose the clkpls reads the actual clock time out?
And the ii var is a ¨chronological counter¨?

I have to find a way to get midi in and out
midi_out(240);

I started to explore a free open pascal thing on mac
At Microbizz
Having some trouble to get the debugger started of the Xcode mac IDE for pascal
Thanks
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Senior Java Developer Wanted jackchang Jobs Offered 0 06-25-2008 03:55 AM
Senior Java Developer / Team Leader / Consultant devunion Jobs Wanted 0 06-14-2008 12:12 AM
WANTED - SENIOR JAVA DEVELOPER- Peterborough, UK - Permanant Mickey Purewal Jobs Offered 0 06-05-2008 11:05 AM
Pascal Triangle help Magic101 New To Java 4 05-01-2008 08:51 PM
Urgent requiremet for senior Java Developer nimishi Jobs Offered 0 03-30-2008 04:32 PM


All times are GMT +3. The time now is 08:33 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org