Skip to content

Commit 3e1ceec

Browse files
committed
Added setting Max items produced
1 parent bb0ccfc commit 3e1ceec

File tree

6 files changed

+11
-627
lines changed

6 files changed

+11
-627
lines changed

php/BP_help.html

-621
This file was deleted.

php/_basic_tasks.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ function compile_help($text_help_file,$html_help_file) {
560560
$no_entry = array("ON","OFF","vel");
561561
if(isset( $filename) AND $filename == "Compilation") return '';
562562
if(!file_exists($text_help_file)) {
563-
echo "<p style=\"color:MediumTurquoise;\">Warning: “BP_help.html” has not yet been reconstructed.</p>";
563+
echo "<p style=\"color:MediumTurquoise;\">Warning: “".$html_help_file."” has not yet been reconstructed.</p>";
564564
return '';
565565
}
566566
$content = @file_get_contents($text_help_file,TRUE);
@@ -3756,7 +3756,7 @@ function filter_form_output($i) {
37563756
global $NoteOffFilter_out, $NoteOnFilter_out, $KeyPressureFilter_out, $ControlChangeFilter_out, $ProgramChangeFilter_out, $ChannelPressureFilter_out, $PitchBendFilter_out, $SystemExclusiveFilter_out, $TimeCodeFilter_out, $SongPositionFilter_out, $SongSelectFilter_out, $TuneRequestFilter_out, $EndSysExFilter_out, $TimingClockFilter_out, $StartFilter_out, $ContinueFilter_out, $ActiveSensingFilter_out, $SystemResetFilter_out;
37573757
global $url_this_page, $MIDIoutput;
37583758
echo "<div id=\"showhide_output".$i."\" style=\"background-color: Snow; width:300px;\">";
3759-
echo "<input style=\"background-color:yellow;\" type=\"submit\" formaction=\"".$url_this_page."\" name=\"savemidiport\" value=\"SAVE MIDI ports\">";
3759+
echo "<input style=\"background-color:yellow;\" type=\"submit\" onclick=\"clearsave();\" formaction=\"".$url_this_page."\" name=\"savemidiport\" value=\"SAVE MIDI ports\">";
37603760
echo "<p style=\"margin-left:12px;\"><b>Filter for MIDI output ".$MIDIoutput[$i]."</b></p>";
37613761
echo "<table style=\"background-color:azure;\">";
37623762
echo "<tr>";
@@ -3923,7 +3923,7 @@ function display_midi_ports($filename) {
39233923
echo "<br />";
39243924
}
39253925
echo "<input style=\"float:right; color:DarkBlue; backgroundsave_-color:yellow;\" type=\"submit\" name=\"create_output\" value=\"Add an output\"><br />";
3926-
echo "<input style=\"background-color:yellow;\" type=\"submit\" formaction=\"".$url_this_page."\" name=\"savemidiport\" value=\"SAVE MIDI ports\">";
3926+
echo "<input style=\"background-color:yellow;\" type=\"submit\" onclick=\"clearsave();\" formaction=\"".$url_this_page."\" name=\"savemidiport\" value=\"SAVE MIDI ports\">";
39273927
echo str_replace(' ',"&nbsp;"," 👉 Delete name if changing number")."<br /><br />";
39283928
for($i = 0; $i < $NumberMIDIinputs; $i++) {
39293929
if($MIDIinput[$i] == -1) $value = '';

php/produce.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@
476476
echo "<font color=\"red\">➡</font> Read the <a onclick=\"window.open('".$output_link."','".$grammar_name."','width=800,height=700,left=300'); return false;\" href=\"".$output_link."\">output file</a> (or <a href=\"".$output_link."\" download>download it</a>)<br />";
477477
}
478478
if($trace_production OR $instruction == "templates" OR $show_production) {
479-
if(file_exists($trace_link) AND $content_trace > 4)
479+
if(file_exists($trace_link) AND strlen($content_trace) > 105)
480480
echo "<font color=\"red\">➡</font> Read the <a onclick=\"window.open('".$trace_link."','trace','width=800,height=600,left=400'); return false;\" href=\"".$trace_link."\">trace file</a> (or <a href=\"".$trace_link."\" download>download it</a>)";
481481
}
482482
echo "</p>";

php/settings.php

+5
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@
6363
$value = $newvalue;
6464
}
6565
if($i == 9) $value = 28; // Jbutt
66+
if($i == 11) { // Max items produced
67+
$newvalue = intval($value);
68+
if($newvalue < 2) $newvalue = 20;
69+
$value = $newvalue;
70+
}
6671
if($i == 41) { // Default buffer size
6772
$newvalue = intval($value);
6873
if($newvalue < 100) $newvalue = 1000;

php/settings_names.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Pclock Pclock/Qclock is the period of metronome (seconds) 1
99
Qclock 1
1010
Jbutt (28 radio button settings) 0
1111
Non-stop improvize 1 1
12-
Cyclic play (not implemented) 1 1
12+
Max items produced Except in real-time MIDI (deft 20) 1
1313
Play each substitution 1 1
1414
Produce all items (not implemented) 1 1
1515
Display production 1 1

php/settings_template

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
1
1010
28
1111
0
12-
0
12+
20
1313
0
1414
0
1515
0

0 commit comments

Comments
 (0)