topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Wednesday April 17, 2024, 8:48 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Ini-File writer  (Read 6149 times)

etude57

  • Participant
  • Joined in 2005
  • *
  • default avatar
  • Posts: 4
    • View Profile
    • Donate to Member
Ini-File writer
« on: March 24, 2007, 04:04 AM »
Hello everyone,
I am trying to create a program that can write custom ini-files..The extension is: *.organ.
The goal: Building inifiles for a virtual organ.
It shoud be able to add user-specified directories, scanning for wav files in that directory, and add them to the ini-file under sections.
Each manual of the organ has it's own section in this file..
I copy and paste an example:"
-The [Organ] section has fields  like church-name, church address etc.All these field-values are user-definable.
-The [Manual] section holds the number of stops for the manual. It should be named by the user (for example: Pedal]), Manual 001 should  have a user-definable name also.
The manual names should be related to the number of Windchests in the [windchest-group] Added directories will be added as a stop.
In the [ORGAN] section is a field named: Haspedals: Yes/no. If the Haspedals is yes, then the pedal will be related to [Windchest001]
The number of the stops should be user-defined.

Problem: Once the [organ]section is completed, the [Manual] section should be filled in. The input from the user should concern all fields except the STOP names. ( Stop001=001,Stop002=002 etc).

[procedure 1]The user will be asked to add a stop-section. If the user goes to the stop section the user will be asked for the Stop-name, and in an explorer-like window select the directory that holds the wav files. The directory and files will be added to the ini-file the form of:
.\Stop-name\Pipe-number1-note-name.wav
.\Stop-name\Pipe-number2-note-name.wav
--etc, until all pipes are scanned and added.
Then the stop should be given a stop-number in the form of Stop001=001,Stop002=002 etc
When the adding process is complete, the program should ask the user if he wants to add another stop, and and repeats procedure 1.
If the user finished all the input, and the wind-chest section is complete, then he can select the second windchest, and repeat Procedure 1. The numbers of registers should be unique, like: Windchest001:001-020, windchest002: 021-040. Windchest003: 041-060. This goes for each Wind-chest.
The remaining fields again are user-definable like amplitude-level etc.
Since I am only a beginner I am really trying to figure out how to do it. The output should just be a txt-file, but the extension is .organ.
Please can someone help me with this?
Look at the example-organ file that I pasted in this section.
With kind regards, Rieks van Dijk,
The Netherlands.


[Organ]
HauptwerkOrganFileFormatVersion=1.20
ChurchName=Noorderkerk Groningen
ChurchAddress=Akkerstraat Groningen
OrganBuilder=Firma Reil
OrganBuildDate=1982
OrganComments=Prepared
RecordingDetails=Recorded 2006/2007
NumberOfManuals=2
HasPedals=Y
NumberOfGenerals=0
NumberOfEnclosures=0
NumberOfTremulants=0
NumberOfWindchestGroups=3
NumberOfReversiblePistons=0
NumberOfLabels=5
NumberOfDivisionalCouplers=0
DispDrawstopCols=6
DispDrawstopRows=8
DispDrawstopColsOffset=N
DispDrawstopOuterColOffsetUp=N
DispScreenSizeHoriz=Medium
DispScreenSizeVert=Medium
DispControlLabelFont=Times New Roman
DispShortcutKeyLabelFont=Arial
DispShortcutKeyLabelColour=Yellow
DispGroupLabelFont=Times New Roman
DispDrawstopBackgroundImageNum=7
DispConsoleBackgroundImageNum=8
DispKeyHorizBackgroundImageNum=10
DispKeyVertBackgroundImageNum=9
DispDrawstopInsetBackgroundImageNum=9
DispExtraButtonRows=0
DispPairDrawstopCols=N
DivisionalsStoreTremulants=N
DivisionalsStoreIntermanualCouplers=Y
DivisionalsStoreIntramanualCouplers=N
GeneralsStoreDivisionalCouplers=N
CombinationsStoreNonDisplayedDrawstops=N
AmplitudeLevel=100
DispExtraDrawstopRows=0
DispExtraDrawstopCols=0
DispExtraDrawstopRowsAboveExtraButtonRows=N
DispTrimAboveExtraRows=N
DispButtonCols=10
DispButtonsAboveManuals=N
DispTrimAboveManuals=Y
DispTrimBelowManuals=N
DispExtraPedalButtonRow=N
DispExtraPedalButtonRowOffset=N
DispExtraPedalButtonRowOffsetRight=N
NumberOfFrameGenerals=0
HighestSampleFormat=Stereo

[Manual000]
Name=PEDAAL
Comments=
MIDIInputNumber=001
NumberOfLogicalKeys=32
NumberOfAccessibleKeys=32
FirstAccessibleKeyLogicalKeyNumber=1
FirstAccessibleKeyMIDINoteNumber=36
NumberOfStops=2
Stop001=001
Stop002=002

NumberOfCouplers=1
Coupler001=001
;NumberOfCouplers=0
;Coupler001=002
;Coupler002=002
NumberOfTremulants=0
NumberOfDivisionals=0
DispKeyColourInverted=N
Displayed=Y

[Manual001]
Name=HOOFDWERK
Comments=
MIDIInputNumber=002
NumberOfLogicalKeys=56
NumberOfAccessibleKeys=56
FirstAccessibleKeyLogicalKeyNumber=1
FirstAccessibleKeyMIDINoteNumber=36
NumberOfStops=2
Stop001=010
Stop002=011

NumberOfCouplers=0
NumberOfTremulants=0
NumberOfDivisionals=0
DispKeyColourInverted=N
Displayed=Y

[Manual002]
Name=RUGWERK
Comments=
MIDIInputNumber=003
NumberOfLogicalKeys=56
NumberOfAccessibleKeys=56
FirstAccessibleKeyLogicalKeyNumber=1
FirstAccessibleKeyMIDINoteNumber=36
NumberOfStops=1
Stop001=021

NumberOfCouplers=0
NumberOfTremulants=0
NumberOfDivisionals=0
DispKeyColourInverted=N
Displayed=Y

[WindchestGroup001]
Comment=Pedaal wind-chest
NumberOfEnclosures=0
NumberOfTremulants=0

[WindchestGroup002]
Comment=Hoofdwerk
NumberOfEnclosures=0
NumberOfTremulants=0
Tremulant001=001

[WindchestGroup003]
Comment=Rugwerk
NumberOfEnclosures=0
NumberOfTremulants=0 ;1
Tremulant001=002

; Couplers ***************************************************************************
[Coupler001]
ShortcutKey=050
Name=POS/PD
Comments=
UnisonOff=N
DestinationManual=001
DestinationKeyshift=0
CoupleToSubsequentUnisonIntermanualCouplers=N
CoupleToSubsequentUpwardIntermanualCouplers=N
CoupleToSubsequentDownwardIntermanualCouplers=N
CoupleToSubsequentUpwardIntramanualCouplers=Y
CoupleToSubsequentDownwardIntramanualCouplers=N
StopControlMIDIKeyNumber=36
DispDrawstopCol=1
DispDrawstopRow=7
DispLabelColour=Dark Green
DispLabelFontSize=Normal
Displayed=Y
DispImageNum=1
DefaultToEngaged=N
DisplayInInvertedState=N
DispKeyLabelOnLeft=Y

;Registers ****************************************************************************

;Pedaal*******************************************************************************

[Stop001]
Name=  Prestant 16'
NumberOfLogicalPipes=30
NumberOfAccessiblePipes=30
FirstAccessiblePipeLogicalPipeNumber=001
FirstAccessiblePipeLogicalKeyNumber=001
Comments=
WindchestGroup=001
Percussive=N
DefaultToEngaged=N
DisplayInInvertedState=N
StopControlMIDIKeyNumber=40
ShortcutKey=053
DispDrawstopCol=1
DispDrawstopRow=1
DispLabelColour=Black
DispLabelFontSize=Normal
Displayed=Y
DispImageNum=2
AmplitudeLevel=100
DispKeyLabelOnLeft=Y
Pipe001=.\Pedaal\Prestant16\01-C1.wav
Pipe002=.\Pedaal\Prestant16\02-C#1.wav
Pipe003=.\Pedaal\Prestant16\03-D1.wav
Pipe004=.\Pedaal\Prestant16\04-D#1.wav
Pipe005=.\Pedaal\Prestant16\05-E1.wav
Pipe006=.\Pedaal\Prestant16\06-F1.wav
Pipe007=.\Pedaal\Prestant16\07-F#1.wav
Pipe008=.\Pedaal\Prestant16\08-G1.wav
Pipe009=.\Pedaal\Prestant16\09-G#1.wav
Pipe010=.\Pedaal\Prestant16\10-A1.wav
Pipe011=.\Pedaal\Prestant16\11-A#1.wav
Pipe012=.\Pedaal\Prestant16\12-B1.wav
Pipe013=.\Pedaal\Prestant16\13-C2.wav
Pipe014=.\Pedaal\Prestant16\14-C#2.wav
Pipe015=.\Pedaal\Prestant16\15-D2.wav
Pipe016=.\Pedaal\Prestant16\16-D#2.wav
Pipe017=.\Pedaal\Prestant16\17-E2.wav
Pipe018=.\Pedaal\Prestant16\18-F2.wav
Pipe019=.\Pedaal\Prestant16\19-F#2.wav
Pipe020=.\Pedaal\Prestant16\20-G2.wav
Pipe021=.\Pedaal\Prestant16\21-G#2.wav
Pipe022=.\Pedaal\Prestant16\22-A2.wav
Pipe023=.\Pedaal\Prestant16\23-A#2.wav
Pipe024=.\Pedaal\Prestant16\24-B2.wav
Pipe025=.\Pedaal\Prestant16\25-C3.wav
Pipe026=.\Pedaal\Prestant16\26-C#3.wav
Pipe027=.\Pedaal\Prestant16\27-D3.wav
Pipe028=.\Pedaal\Prestant16\28-D#3.wav
Pipe029=.\Pedaal\Prestant16\29-E3.wav
Pipe030=.\Pedaal\Prestant16\30-F3.wav
Pipe031=.\Pedaal\Prestant16\31-F#3.wav
Pipe032=.\Pedaal\Prestant16\32-G3.wav

[Stop002]
Name=  Bazuin16'
NumberOfLogicalPipes=30
NumberOfAccessiblePipes=30
FirstAccessiblePipeLogicalPipeNumber=001
FirstAccessiblePipeLogicalKeyNumber=001
Comments=
WindchestGroup=001
Percussive=N
DefaultToEngaged=N
DisplayInInvertedState=N
StopControlMIDIKeyNumber=41
ShortcutKey=053
DispDrawstopCol=1
DispDrawstopRow=2
DispLabelColour=Black
DispLabelFontSize=Normal
Displayed=Y
DispImageNum=2
AmplitudeLevel=100
DispKeyLabelOnLeft=Y
Pipe001=.\Pedaal\Bazuin16\01-C1.wav
Pipe002=.\Pedaal\Bazuin16\02-C#1.wav
Pipe003=.\Pedaal\Bazuin16\03-D1.wav
Pipe004=.\Pedaal\Bazuin16\04-D#1.wav
Pipe005=.\Pedaal\Bazuin16\05-E1.wav
Pipe006=.\Pedaal\Bazuin16\06-F1.wav
Pipe007=.\Pedaal\Bazuin16\07-F#1.wav
Pipe008=.\Pedaal\Bazuin16\08-G1.wav
Pipe009=.\Pedaal\Bazuin16\09-G#1.wav
Pipe010=.\Pedaal\Bazuin16\10-A1.wav
Pipe011=.\Pedaal\Bazuin16\11-A#1.wav
Pipe012=.\Pedaal\Bazuin16\12-B1.wav
Pipe013=.\Pedaal\Bazuin16\13-C2.wav
Pipe014=.\Pedaal\Bazuin16\14-C#2.wav
Pipe015=.\Pedaal\Bazuin16\15-D2.wav
Pipe016=.\Pedaal\Bazuin16\16-D#2.wav
Pipe017=.\Pedaal\Bazuin16\17-E2.wav
Pipe018=.\Pedaal\Bazuin16\18-F2.wav
Pipe019=.\Pedaal\Bazuin16\19-F#2.wav
Pipe020=.\Pedaal\Bazuin16\20-G2.wav
Pipe021=.\Pedaal\Bazuin16\21-G#2.wav
Pipe022=.\Pedaal\Bazuin16\22-A2.wav
Pipe023=.\Pedaal\Bazuin16\23-A#2.wav
Pipe024=.\Pedaal\Bazuin16\24-B2.wav
Pipe025=.\Pedaal\Bazuin16\25-C3.wav
Pipe026=.\Pedaal\Bazuin16\26-C#3.wav
Pipe027=.\Pedaal\Bazuin16\27-D3.wav
Pipe028=.\Pedaal\Bazuin16\28-D#3.wav
Pipe029=.\Pedaal\Bazuin16\29-E3.wav
Pipe030=.\Pedaal\Bazuin16\30-F3.wav
Pipe031=.\Pedaal\Bazuin16\31-F#3.wav
Pipe032=.\Pedaal\Bazuin16\32-G3.wav

;Hoofdwerk*******************************************************************************


[Stop010]
Name=  Prestant 8'
NumberOfLogicalPipes=56
NumberOfAccessiblePipes=56
FirstAccessiblePipeLogicalPipeNumber=001
FirstAccessiblePipeLogicalKeyNumber=001
Comments=
WindchestGroup=002
Percussive=N
DefaultToEngaged=N
DisplayInInvertedState=N
StopControlMIDIKeyNumber=44
ShortcutKey=083
DispDrawstopCol=2
DispDrawstopRow=1
DispLabelColour=Black
DispLabelFontSize=Normal
Displayed=Y
DispImageNum=2
AmplitudeLevel=100
DispKeyLabelOnLeft=Y
Pipe001=.\Hoofdwerk\Prestant8\01-C1.wav
Pipe002=.\Hoofdwerk\Prestant8\02-C#1.wav
Pipe003=.\Hoofdwerk\Prestant8\03-D1.wav
Pipe004=.\Hoofdwerk\Prestant8\04-D#1.wav
Pipe005=.\Hoofdwerk\Prestant8\05-E1.wav
Pipe006=.\Hoofdwerk\Prestant8\06-F1.wav
Pipe007=.\Hoofdwerk\Prestant8\07-F#1.wav
Pipe008=.\Hoofdwerk\Prestant8\08-G1.wav
Pipe009=.\Hoofdwerk\Prestant8\09-G#1.wav
Pipe010=.\Hoofdwerk\Prestant8\10-A1.wav
Pipe011=.\Hoofdwerk\Prestant8\11-A#1.wav
Pipe012=.\Hoofdwerk\Prestant8\12-B1.wav
Pipe013=.\Hoofdwerk\Prestant8\13-C2.wav
Pipe014=.\Hoofdwerk\Prestant8\14-C#2.wav
Pipe015=.\Hoofdwerk\Prestant8\15-D2.wav
Pipe016=.\Hoofdwerk\Prestant8\16-D#2.wav
Pipe017=.\Hoofdwerk\Prestant8\17-E2.wav
Pipe018=.\Hoofdwerk\Prestant8\18-F2.wav
Pipe019=.\Hoofdwerk\Prestant8\19-F#2.wav
Pipe020=.\Hoofdwerk\Prestant8\20-G2.wav
Pipe021=.\Hoofdwerk\Prestant8\21-G#2.wav
Pipe022=.\Hoofdwerk\Prestant8\22-A2.wav
Pipe023=.\Hoofdwerk\Prestant8\23-A#2.wav
Pipe024=.\Hoofdwerk\Prestant8\24-B2.wav
Pipe025=.\Hoofdwerk\Prestant8\25-C3.wav
Pipe026=.\Hoofdwerk\Prestant8\26-C#3.wav
Pipe027=.\Hoofdwerk\Prestant8\27-D3.wav
Pipe028=.\Hoofdwerk\Prestant8\28-D#3.wav
Pipe029=.\Hoofdwerk\Prestant8\29-E3.wav
Pipe030=.\Hoofdwerk\Prestant8\30-F3.wav
Pipe031=.\Hoofdwerk\Prestant8\31-F#3.wav
Pipe032=.\Hoofdwerk\Prestant8\32-G3.wav
Pipe033=.\Hoofdwerk\Prestant8\33-G#3.wav
Pipe034=.\Hoofdwerk\Prestant8\34-A3.wav
Pipe035=.\Hoofdwerk\Prestant8\35-A#3.wav
Pipe036=.\Hoofdwerk\Prestant8\36-B3.wav
Pipe037=.\Hoofdwerk\Prestant8\37-C4.wav
Pipe038=.\Hoofdwerk\Prestant8\38-C#4.wav
Pipe039=.\Hoofdwerk\Prestant8\39-D4.wav
Pipe040=.\Hoofdwerk\Prestant8\40-D#4.wav
Pipe041=.\Hoofdwerk\Prestant8\41-E4.wav
Pipe042=.\Hoofdwerk\Prestant8\42-F4.wav
Pipe043=.\Hoofdwerk\Prestant8\43-F#4.wav
Pipe044=.\Hoofdwerk\Prestant8\44-G4.wav
Pipe045=.\Hoofdwerk\Prestant8\45-G#4.wav
Pipe046=.\Hoofdwerk\Prestant8\46-A4.wav
Pipe047=.\Hoofdwerk\Prestant8\47-A#4.wav
Pipe048=.\Hoofdwerk\Prestant8\48-B4.wav
Pipe049=.\Hoofdwerk\Prestant8\49-C5.wav
Pipe050=.\Hoofdwerk\Prestant8\50-C#5.wav
Pipe051=.\Hoofdwerk\Prestant8\51-D5.wav
Pipe052=.\Hoofdwerk\Prestant8\52-D#5.wav
Pipe053=.\Hoofdwerk\Prestant8\53-E5.wav
Pipe054=.\Hoofdwerk\Prestant8\54-F5.wav
Pipe055=.\Hoofdwerk\Prestant8\55-F#5.wav
Pipe056=.\Hoofdwerk\Prestant8\56-G5.wav

[Stop011]
Name=  Bourdon 16'
NumberOfLogicalPipes=56
NumberOfAccessiblePipes=56
FirstAccessiblePipeLogicalPipeNumber=001
FirstAccessiblePipeLogicalKeyNumber=001
Comments=
WindchestGroup=001
Percussive=N
DefaultToEngaged=N
DisplayInInvertedState=N
StopControlMIDIKeyNumber=45
ShortcutKey=067
DispDrawstopCol=2
DispDrawstopRow=2
DispLabelColour=Black
DispLabelFontSize=Normal
Displayed=Y
DispImageNum=2
AmplitudeLevel=100
DispKeyLabelOnLeft=Y
Pipe001=.\Hoofdwerk\Bourdon16\01-C1.wav
Pipe002=.\Hoofdwerk\Bourdon16\02-C#1.wav
Pipe003=.\Hoofdwerk\Bourdon16\03-D1.wav
Pipe004=.\Hoofdwerk\Bourdon16\04-D#1.wav
Pipe005=.\Hoofdwerk\Bourdon16\05-E1.wav
Pipe006=.\Hoofdwerk\Bourdon16\06-F1.wav
Pipe007=.\Hoofdwerk\Bourdon16\07-F#1.wav
Pipe008=.\Hoofdwerk\Bourdon16\08-G1.wav
Pipe009=.\Hoofdwerk\Bourdon16\09-G#1.wav
Pipe010=.\Hoofdwerk\Bourdon16\10-A1.wav
Pipe011=.\Hoofdwerk\Bourdon16\11-A#1.wav
Pipe012=.\Hoofdwerk\Bourdon16\12-B1.wav
Pipe013=.\Hoofdwerk\Bourdon16\13-C2.wav
Pipe014=.\Hoofdwerk\Bourdon16\14-C#2.wav
Pipe015=.\Hoofdwerk\Bourdon16\15-D2.wav
Pipe016=.\Hoofdwerk\Bourdon16\16-D#2.wav
Pipe017=.\Hoofdwerk\Bourdon16\17-E2.wav
Pipe018=.\Hoofdwerk\Bourdon16\18-F2.wav
Pipe019=.\Hoofdwerk\Bourdon16\19-F#2.wav
Pipe020=.\Hoofdwerk\Bourdon16\20-G2.wav
Pipe021=.\Hoofdwerk\Bourdon16\21-G#2.wav
Pipe022=.\Hoofdwerk\Bourdon16\22-A2.wav
Pipe023=.\Hoofdwerk\Bourdon16\23-A#2.wav
Pipe024=.\Hoofdwerk\Bourdon16\24-B2.wav
Pipe025=.\Hoofdwerk\Bourdon16\25-C3.wav
Pipe026=.\Hoofdwerk\Bourdon16\26-C#3.wav
Pipe027=.\Hoofdwerk\Bourdon16\27-D3.wav
Pipe028=.\Hoofdwerk\Bourdon16\28-D#3.wav
Pipe029=.\Hoofdwerk\Bourdon16\29-E3.wav
Pipe030=.\Hoofdwerk\Bourdon16\30-F3.wav
Pipe031=.\Hoofdwerk\Bourdon16\31-F#3.wav
Pipe032=.\Hoofdwerk\Bourdon16\32-G3.wav
Pipe033=.\Hoofdwerk\Bourdon16\33-G#3.wav
Pipe034=.\Hoofdwerk\Bourdon16\34-A3.wav
Pipe035=.\Hoofdwerk\Bourdon16\35-A#3.wav
Pipe036=.\Hoofdwerk\Bourdon16\36-B3.wav
Pipe037=.\Hoofdwerk\Bourdon16\37-C4.wav
Pipe038=.\Hoofdwerk\Bourdon16\38-C#4.wav
Pipe039=.\Hoofdwerk\Bourdon16\39-D4.wav
Pipe040=.\Hoofdwerk\Bourdon16\40-D#4.wav
Pipe041=.\Hoofdwerk\Bourdon16\41-E4.wav
Pipe042=.\Hoofdwerk\Bourdon16\42-F4.wav
Pipe043=.\Hoofdwerk\Bourdon16\43-F#4.wav
Pipe044=.\Hoofdwerk\Bourdon16\44-G4.wav
Pipe045=.\Hoofdwerk\Bourdon16\45-G#4.wav
Pipe046=.\Hoofdwerk\Bourdon16\46-A4.wav
Pipe047=.\Hoofdwerk\Bourdon16\47-A#4.wav
Pipe048=.\Hoofdwerk\Bourdon16\48-B4.wav
Pipe049=.\Hoofdwerk\Bourdon16\49-C5.wav
Pipe050=.\Hoofdwerk\Bourdon16\50-C#5.wav
Pipe051=.\Hoofdwerk\Bourdon16\51-D5.wav
Pipe052=.\Hoofdwerk\Bourdon16\52-D#5.wav
Pipe053=.\Hoofdwerk\Bourdon16\53-E5.wav
Pipe054=.\Hoofdwerk\Bourdon16\54-F5.wav
Pipe055=.\Hoofdwerk\Bourdon16\55-F#5.wav
Pipe056=.\Hoofdwerk\Bourdon16\56-G5.wav
Pipe031=.\Hoofdwerk\Bourdon16\31-F#3.wav
Pipe032=.\Hoofdwerk\Bourdon16\32-G3.wav
Pipe033=.\Hoofdwerk\Bourdon16\33-G#3.wav
Pipe034=.\Hoofdwerk\Bourdon16\34-A3.wav
Pipe035=.\Hoofdwerk\Bourdon16\35-A#3.wav
Pipe036=.\Hoofdwerk\Bourdon16\36-B3.wav
Pipe037=.\Hoofdwerk\Bourdon16\37-C4.wav
Pipe038=.\Hoofdwerk\Bourdon16\38-C#4.wav
Pipe039=.\Hoofdwerk\Bourdon16\39-D4.wav
Pipe040=.\Hoofdwerk\Bourdon16\40-D#4.wav
Pipe041=.\Hoofdwerk\Bourdon16\41-E4.wav
Pipe042=.\Hoofdwerk\Bourdon16\42-F4.wav
Pipe043=.\Hoofdwerk\Bourdon16\43-F#4.wav
Pipe044=.\Hoofdwerk\Bourdon16\44-G4.wav
Pipe045=.\Hoofdwerk\Bourdon16\45-G#4.wav
Pipe046=.\Hoofdwerk\Bourdon16\46-A4.wav
Pipe047=.\Hoofdwerk\Bourdon16\47-A#4.wav
Pipe048=.\Hoofdwerk\Bourdon16\48-B4.wav
Pipe049=.\Hoofdwerk\Bourdon16\49-C5.wav
Pipe050=.\Hoofdwerk\Bourdon16\50-C#5.wav
Pipe051=.\Hoofdwerk\Bourdon16\51-D5.wav
Pipe052=.\Hoofdwerk\Bourdon16\52-D#5.wav
Pipe053=.\Hoofdwerk\Bourdon16\53-E5.wav
Pipe054=.\Hoofdwerk\Bourdon16\54-F5.wav
Pipe055=.\Hoofdwerk\Bourdon16\55-F#5.wav
Pipe056=.\Hoofdwerk\Bourdon16\56-G5.wav



;Rugwerk ******************************************************************************
[Stop021]
Name= Prestant 4'
NumberOfLogicalPipes=56
NumberOfAccessiblePipes=56
FirstAccessiblePipeLogicalPipeNumber=001
FirstAccessiblePipeLogicalKeyNumber=001
Comments=
WindchestGroup=003
Percussive=N
DefaultToEngaged=N
DisplayInInvertedState=N
StopControlMIDIKeyNumber=59
ShortcutKey=085
DispDrawstopCol=4
DispDrawstopRow=1
DispLabelColour=Black
DispLabelFontSize=Normal
Displayed=Y
DispImageNum=2
AmplitudeLevel=100
DispKeyLabelOnLeft=Y
Pipe001=.\Rugwerk\Prestant4\01-C1.wav
Pipe002=.\Rugwerk\Prestant4\02-C#1.wav
Pipe003=.\Rugwerk\Prestant4\03-D1.wav
Pipe004=.\Rugwerk\Prestant4\04-D#1.wav
Pipe005=.\Rugwerk\Prestant4\05-E1.wav
Pipe006=.\Rugwerk\Prestant4\06-F1.wav
Pipe007=.\Rugwerk\Prestant4\07-F#1.wav
Pipe008=.\Rugwerk\Prestant4\08-G1.wav
Pipe009=.\Rugwerk\Prestant4\09-G#1.wav
Pipe010=.\Rugwerk\Prestant4\10-A1.wav
Pipe011=.\Rugwerk\Prestant4\11-A#1.wav
Pipe012=.\Rugwerk\Prestant4\12-B1.wav
Pipe013=.\Rugwerk\Prestant4\13-C2.wav
Pipe014=.\Rugwerk\Prestant4\14-C#2.wav
Pipe015=.\Rugwerk\Prestant4\15-D2.wav
Pipe016=.\Rugwerk\Prestant4\16-D#2.wav
Pipe017=.\Rugwerk\Prestant4\17-E2.wav
Pipe018=.\Rugwerk\Prestant4\18-F2.wav
Pipe019=.\Rugwerk\Prestant4\19-F#2.wav
Pipe020=.\Rugwerk\Prestant4\20-G2.wav
Pipe021=.\Rugwerk\Prestant4\21-G#2.wav
Pipe022=.\Rugwerk\Prestant4\22-A2.wav
Pipe023=.\Rugwerk\Prestant4\23-A#2.wav
Pipe024=.\Rugwerk\Prestant4\24-B2.wav
Pipe025=.\Rugwerk\Prestant4\25-C3.wav
Pipe026=.\Rugwerk\Prestant4\26-C#3.wav
Pipe027=.\Rugwerk\Prestant4\27-D3.wav
Pipe028=.\Rugwerk\Prestant4\28-D#3.wav
Pipe029=.\Rugwerk\Prestant4\29-E3.wav
Pipe030=.\Rugwerk\Prestant4\30-F3.wav
Pipe031=.\Rugwerk\Prestant4\31-F#3.wav
Pipe032=.\Rugwerk\Prestant4\32-G3.wav
Pipe033=.\Rugwerk\Prestant4\33-G#3.wav
Pipe034=.\Rugwerk\Prestant4\34-A3.wav
Pipe035=.\Rugwerk\Prestant4\35-A#3.wav
Pipe036=.\Rugwerk\Prestant4\36-B3.wav
Pipe037=.\Rugwerk\Prestant4\37-C4.wav
Pipe038=.\Rugwerk\Prestant4\38-C#4.wav
Pipe039=.\Rugwerk\Prestant4\39-D4.wav
Pipe040=.\Rugwerk\Prestant4\40-D#4.wav
Pipe041=.\Rugwerk\Prestant4\41-E4.wav
Pipe042=.\Rugwerk\Prestant4\42-F4.wav
Pipe043=.\Rugwerk\Prestant4\43-F#4.wav
Pipe044=.\Rugwerk\Prestant4\44-G4.wav
Pipe045=.\Rugwerk\Prestant4\45-G#4.wav
Pipe046=.\Rugwerk\Prestant4\46-A4.wav
Pipe047=.\Rugwerk\Prestant4\47-A#4.wav
Pipe048=.\Rugwerk\Prestant4\48-B4.wav
Pipe049=.\Rugwerk\Prestant4\49-C5.wav
Pipe050=.\Rugwerk\Prestant4\50-C#5.wav
Pipe051=.\Rugwerk\Prestant4\51-D5.wav
Pipe052=.\Rugwerk\Prestant4\52-D#5.wav
Pipe053=.\Rugwerk\Prestant4\53-E5.wav
Pipe054=.\Rugwerk\Prestant4\54-F5.wav
Pipe055=.\Rugwerk\Prestant4\55-F#5.wav
Pipe056=.\Rugwerk\Prestant4\56-G5.wav

[Stop022]
Name=  Gedekt 8'
NumberOfLogicalPipes=56
NumberOfAccessiblePipes=56
FirstAccessiblePipeLogicalPipeNumber=001
FirstAccessiblePipeLogicalKeyNumber=001
Comments=
WindchestGroup=003
Percussive=N
DefaultToEngaged=N
DisplayInInvertedState=N
StopControlMIDIKeyNumber=60
ShortcutKey=087
DispDrawstopCol=4
DispDrawstopRow=2
DispLabelColour=Black
DispLabelFontSize=Normal
Displayed=Y
DispImageNum=2
AmplitudeLevel=100
DispKeyLabelOnLeft=Y
Pipe001=.\Rugwerk\Gedekt8\01-C1.wav
Pipe002=.\Rugwerk\Gedekt8\02-C#1.wav
Pipe003=.\Rugwerk\Gedekt8\03-D1.wav
Pipe004=.\Rugwerk\Gedekt8\04-D#1.wav
Pipe005=.\Rugwerk\Gedekt8\05-E1.wav
Pipe006=.\Rugwerk\Gedekt8\06-F1.wav
Pipe007=.\Rugwerk\Gedekt8\07-F#1.wav
Pipe008=.\Rugwerk\Gedekt8\08-G1.wav
Pipe009=.\Rugwerk\Gedekt8\09-G#1.wav
Pipe010=.\Rugwerk\Gedekt8\10-A1.wav
Pipe011=.\Rugwerk\Gedekt8\11-A#1.wav
Pipe012=.\Rugwerk\Gedekt8\12-B1.wav
Pipe013=.\Rugwerk\Gedekt8\13-C2.wav
Pipe014=.\Rugwerk\Gedekt8\14-C#2.wav
Pipe015=.\Rugwerk\Gedekt8\15-D2.wav
Pipe016=.\Rugwerk\Gedekt8\16-D#2.wav
Pipe017=.\Rugwerk\Gedekt8\17-E2.wav
Pipe018=.\Rugwerk\Gedekt8\18-F2.wav
Pipe019=.\Rugwerk\Gedekt8\19-F#2.wav
Pipe020=.\Rugwerk\Gedekt8\20-G2.wav
Pipe021=.\Rugwerk\Gedekt8\21-G#2.wav
Pipe022=.\Rugwerk\Gedekt8\22-A2.wav
Pipe023=.\Rugwerk\Gedekt8\23-A#2.wav
Pipe024=.\Rugwerk\Gedekt8\24-B2.wav
Pipe025=.\Rugwerk\Gedekt8\25-C3.wav
Pipe026=.\Rugwerk\Gedekt8\26-C#3.wav
Pipe027=.\Rugwerk\Gedekt8\27-D3.wav
Pipe028=.\Rugwerk\Gedekt8\28-D#3.wav
Pipe029=.\Rugwerk\Gedekt8\29-E3.wav
Pipe030=.\Rugwerk\Gedekt8\30-F3.wav
Pipe031=.\Rugwerk\Gedekt8\31-F#3.wav
Pipe032=.\Rugwerk\Gedekt8\32-G3.wav
Pipe033=.\Rugwerk\Gedekt8\33-G#3.wav
Pipe034=.\Rugwerk\Gedekt8\34-A3.wav
Pipe035=.\Rugwerk\Gedekt8\35-A#3.wav
Pipe036=.\Rugwerk\Gedekt8\36-B3.wav
Pipe037=.\Rugwerk\Gedekt8\37-C4.wav
Pipe038=.\Rugwerk\Gedekt8\38-C#4.wav
Pipe039=.\Rugwerk\Gedekt8\39-D4.wav
Pipe040=.\Rugwerk\Gedekt8\40-D#4.wav
Pipe041=.\Rugwerk\Gedekt8\41-E4.wav
Pipe042=.\Rugwerk\Gedekt8\42-F4.wav
Pipe043=.\Rugwerk\Gedekt8\43-F#4.wav
Pipe044=.\Rugwerk\Gedekt8\44-G4.wav
Pipe045=.\Rugwerk\Gedekt8\45-G#4.wav
Pipe046=.\Rugwerk\Gedekt8\46-A4.wav
Pipe047=.\Rugwerk\Gedekt8\47-A#4.wav
Pipe048=.\Rugwerk\Gedekt8\48-B4.wav
Pipe049=.\Rugwerk\Gedekt8\49-C5.wav
Pipe050=.\Rugwerk\Gedekt8\50-C#5.wav
Pipe051=.\Rugwerk\Gedekt8\51-D5.wav
Pipe052=.\Rugwerk\Gedekt8\52-D#5.wav
Pipe053=.\Rugwerk\Gedekt8\53-E5.wav
Pipe054=.\Rugwerk\Gedekt8\54-F5.wav
Pipe055=.\Rugwerk\Gedekt8\55-F#5.wav
Pipe056=.\Rugwerk\Gedekt8\56-G5.wav


;LABEL SECTION****************************************************************************

[Label001]
Name=PEDAAL
FreeXPlacement=N
FreeYPlacement=N
DispDrawstopCol=1
DispSpanDrawstopColToRight=N
DispAtTopOfDrawstopCol=Y
DispLabelColour=Black
DispLabelFontSize=Small
DispImageNum=1

[Label002]
Name=HOOFDWERK
FreeXPlacement=N
FreeYPlacement=N
DispDrawstopCol=2
DispSpanDrawstopColToRight=Y
DispAtTopOfDrawstopCol=Y
DispLabelColour=Black
DispLabelFontSize=Normal
DispImageNum=1

[Label003]
Name=RUGWERK
FreeXPlacement=N
FreeYPlacement=N
DispDrawstopCol=4
DispSpanDrawstopColToRight=Y
DispAtTopOfDrawstopCol=Y
DispLabelColour=Black
DispLabelFontSize=Normal
DispImageNum=1

[Label004]
Name=Fa. Reil
FreeXPlacement=Y
FreeYPlacement=Y
DispDrawstopCol=3
DispSpanDrawstopColToRight=Y
DispXpos=455
DispYpos=25
DispLabelColour=Black
DispLabelFontSize=Normal
DispImageNum=1

[Label005]
Name=1923/1982
FreeXPlacement=Y
FreeYPlacement=Y
DispSpanDrawstopColToRight=Y
DispXpos=455
DispYpos=55
DispLabelColour=Black
DispLabelFontSize=Normal
DispImageNum=1


tchikien

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 34
    • View Profile
    • Donate to Member
Re: Ini-File writer
« Reply #1 on: March 25, 2007, 11:15 AM »
What language/IDE you using?

etude57

  • Participant
  • Joined in 2005
  • *
  • default avatar
  • Posts: 4
    • View Profile
    • Donate to Member
Re: Ini-File writer
« Reply #2 on: March 25, 2007, 11:24 AM »
Hello, I am using currently MS VB2005 Express, , and also VB6, Delphi 7.
with kind regards, etude57

tchikien

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 34
    • View Profile
    • Donate to Member
Re: Ini-File writer
« Reply #3 on: March 25, 2007, 12:07 PM »
If you use Delphi 7 then you should look at the TRegIniFile class in the Delphi Help. Read the Methods and Properties.

etude57

  • Participant
  • Joined in 2005
  • *
  • default avatar
  • Posts: 4
    • View Profile
    • Donate to Member
Re: Ini-File writer
« Reply #4 on: March 25, 2007, 12:15 PM »
Thank you, I will try to find it....

rjbull

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 3,199
    • View Profile
    • Donate to Member
Re: Ini-File writer
« Reply #5 on: March 25, 2007, 04:06 PM »
You might find IniFile a useful tool:


IniFile handles Windows type INI files with section names in square brackets, and assignments of the form: item=string.

Syntax:
 
INIFILE filename [section] item=string    change or write
INIFILE filename [section] item=    remove item
INIFILE filename [section] item==    clear item
INIFILE filename [section] /remove    remove entire section
INIFILE filename [section] item > temp.bat    read item
INIFILE filename [section] > temp.bat    read all items of section

Items and sections are generated if not found. The INI file must exist.

Reading an assignment sends a SET statement to STDOUT for redirection to a temporary batch file.



etude57

  • Participant
  • Joined in 2005
  • *
  • default avatar
  • Posts: 4
    • View Profile
    • Donate to Member
Re: Ini-File writer
« Reply #6 on: March 26, 2007, 01:42 AM »
Ok, Thank you very much for your help....I will try IniFile...You have been very helpfull.

With kind regards, etude57