11<?xml version =" 1.0" encoding =" utf-8" ?>
2- <model version =" NetLogo 7.0.0-beta0 " snapToGrid =" true" >
2+ <model version =" NetLogo 7.0.0-beta1 " snapToGrid =" true" >
33 <code ><![CDATA[ extensions [ sound ]
44
55globals [
@@ -385,14 +385,42 @@ end
385385; Copyright 2017 Uri Wilensky.
386386; See Info tab for full copyright and license.]]> </code >
387387 <widgets >
388- <view x =" 290" wrappingAllowedX =" false" y =" 10" frameRate =" 30.0" minPycor =" 0" height =" 340" showTickCounter =" true" patchSize =" 21.0" fontSize =" 10" wrappingAllowedY =" false" width =" 340" tickCounterLabel =" ticks" maxPycor =" 15" updateMode =" 1" maxPxcor =" 15" minPxcor =" 0" ></view >
389- <button x =" 5" y =" 50" height =" 33" disableUntilTicks =" false" forever =" false" kind =" Observer" display =" setup" width =" 66" sizeVersion =" 0" >setup
388+ <view x =" 340" wrappingAllowedX =" false" y =" 10" frameRate =" 30.0" minPycor =" 0" height =" 340" showTickCounter =" true" patchSize =" 21.0" fontSize =" 10" wrappingAllowedY =" false" width =" 340" tickCounterLabel =" ticks" maxPycor =" 15" updateMode =" 1" maxPxcor =" 15" minPxcor =" 0" ></view >
389+ <slider x =" 5" step =" 1" y =" 10" max =" 12" width =" 170" display =" num-chromosomes" height =" 50" min =" 2" direction =" Horizontal" default =" 4.0" variable =" num-chromosomes" ></slider >
390+ <button x =" 75" y =" 65" height =" 35" disableUntilTicks =" true" forever =" false" kind =" Observer" width =" 135" display =" go-once-no-evolve" >repeat num-chromosomes * 4 [go-no-evolve]</button >
391+ <button x =" 5" y =" 65" height =" 35" disableUntilTicks =" false" forever =" false" kind =" Observer" width =" 66" display =" setup" >setup
390392sound:play-note "TRUMPET" 60 62 2
391393wait 2</button >
392- <button x =" 215" y =" 90" height =" 33" disableUntilTicks =" true" forever =" true" kind =" Observer" display =" go" width =" 70" sizeVersion =" 0" >go</button >
393- <slider x =" 5" step =" 1" y =" 10" max =" 12" display =" num-chromosomes" height =" 33" min =" 2" direction =" Horizontal" default =" 4.0" variable =" num-chromosomes" width =" 145" sizeVersion =" 0" ></slider >
394- <switch x =" 155" y =" 10" height =" 33" on =" true" variable =" shuffle-parts?" display =" shuffle-parts?" width =" 130" sizeVersion =" 0" ></switch >
395- <plot x =" 545" autoPlotX =" true" yMax =" 10.0" autoPlotY =" true" yAxis =" Number of Hits" y =" 370" xMin =" 0.0" height =" 150" legend =" false" xMax =" 16.0" yMin =" 0.0" xAxis =" Drummer" display =" Hits per Drummer (total)" width =" 235" sizeVersion =" 0" >
394+ <switch x =" 5" y =" 105" height =" 37" on =" true" variable =" sound?" width =" 95" display =" sound?" ></switch >
395+ <button x =" 105" y =" 105" height =" 35" disableUntilTicks =" true" forever =" true" kind =" Observer" width =" 105" >go-no-evolve</button >
396+ <slider x =" 5" step =" 1" y =" 200" max =" 200" width =" 150" display =" hit-limit" height =" 50" min =" 50" direction =" Horizontal" default =" 120.0" variable =" hit-limit" ></slider >
397+ <slider x =" 5" step =" 1" y =" 255" max =" 10" width =" 150" display =" num-mutations" height =" 50" min =" 1" direction =" Horizontal" default =" 1.0" variable =" num-mutations" ></slider >
398+ <slider x =" 160" step =" 0.01" y =" 200" max =" 1" width =" 170" display =" hit-density-modifier" height =" 50" min =" 0" direction =" Horizontal" default =" 0.5" variable =" hit-density-modifier" ></slider >
399+ <slider x =" 160" step =" 1" y =" 255" max =" 8" width =" 170" display =" mutation-strength" height =" 50" min =" 0" direction =" Horizontal" default =" 1.0" variable =" mutation-strength" ></slider >
400+ <switch x =" 180" y =" 10" height =" 50" on =" true" variable =" shuffle-parts?" width =" 150" display =" shuffle-parts?" ></switch >
401+ <slider x =" 5" step =" 1" y =" 145" max =" 200" width =" 325" display =" tempo-bpm" height =" 50" min =" 40" direction =" Horizontal" default =" 135.0" variable =" tempo-bpm" ></slider >
402+ <button x =" 215" y =" 65" height =" 35" disableUntilTicks =" true" forever =" false" kind =" Observer" width =" 115" display =" go-once" >repeat num-chromosomes * 4 [ go ]</button >
403+ <button x =" 215" y =" 105" height =" 35" disableUntilTicks =" true" forever =" true" kind =" Observer" width =" 115" display =" go" >go</button >
404+ <chooser x =" 55" y =" 310" height =" 60" variable =" soloer" current =" 0" width =" 100" display =" soloer" >
405+ <choice type =" double" value =" 0.0" ></choice >
406+ <choice type =" double" value =" 1.0" ></choice >
407+ <choice type =" double" value =" 2.0" ></choice >
408+ <choice type =" double" value =" 3.0" ></choice >
409+ <choice type =" double" value =" 4.0" ></choice >
410+ <choice type =" double" value =" 5.0" ></choice >
411+ <choice type =" double" value =" 6.0" ></choice >
412+ <choice type =" double" value =" 7.0" ></choice >
413+ <choice type =" double" value =" 8.0" ></choice >
414+ <choice type =" double" value =" 9.0" ></choice >
415+ <choice type =" double" value =" 10.0" ></choice >
416+ <choice type =" double" value =" 11.0" ></choice >
417+ <choice type =" double" value =" 12.0" ></choice >
418+ <choice type =" double" value =" 13.0" ></choice >
419+ <choice type =" double" value =" 14.0" ></choice >
420+ <choice type =" double" value =" 15.0" ></choice >
421+ </chooser >
422+ <switch x =" 160" y =" 310" height =" 60" on =" false" variable =" solo?" width =" 100" display =" solo?" ></switch >
423+ <plot x =" 550" autoPlotX =" true" yMax =" 10.0" autoPlotY =" true" yAxis =" Number of Hits" y =" 375" xMin =" 0.0" height =" 240" legend =" false" xMax =" 16.0" yMin =" 0.0" width =" 315" xAxis =" Drummer" display =" Hits per Drummer (total)" >
396424 <setup ></setup >
397425 <update ></update >
398426 <pen interval =" 1.0" mode =" 1" display =" low" color =" -2674135" legend =" true" >
@@ -411,7 +439,24 @@ ask med-drums [plotxy who hits]</update>
411439ask high-drums [plotxy who hits]</update >
412440 </pen >
413441 </plot >
414- <plot x =" 5" autoPlotX =" true" yMax =" 1.0" autoPlotY =" true" yAxis =" Fitness" y =" 370" xMin =" 0.0" height =" 150" legend =" true" xMax =" 1.0" yMin =" 0.0" xAxis =" Ticks" display =" Average Fitness" width =" 280" sizeVersion =" 0" >
442+ <plot x =" 295" autoPlotX =" true" yMax =" 10.0" autoPlotY =" true" yAxis =" Number of Hits" y =" 375" xMin =" 0.0" height =" 240" legend =" false" xMax =" 10.0" yMin =" 0.0" width =" 250" xAxis =" Drummer" display =" Hits Since Evolution" >
443+ <setup ></setup >
444+ <update ></update >
445+ <pen interval =" 1.0" mode =" 1" display =" low" color =" -2674135" legend =" true" >
446+ <setup ></setup >
447+ <update >plot-pen-reset
448+ ask low-drums [ plotxy who hits-since-evolve ]</update >
449+ </pen >
450+ <pen interval =" 1.0" mode =" 1" display =" pen-1" color =" -10899396" legend =" true" >
451+ <setup ></setup >
452+ <update >plot-pen-reset ask med-drums [ plotxy who hits-since-evolve ]</update >
453+ </pen >
454+ <pen interval =" 1.0" mode =" 1" display =" pen-2" color =" -13345367" legend =" true" >
455+ <setup ></setup >
456+ <update >plot-pen-reset ask high-drums [ plotxy who hits-since-evolve ]</update >
457+ </pen >
458+ </plot >
459+ <plot x =" 10" autoPlotX =" true" yMax =" 1.0" autoPlotY =" true" yAxis =" Fitness" y =" 375" xMin =" 0.0" height =" 240" legend =" true" xMax =" 1.0" yMin =" 0.0" width =" 280" xAxis =" Ticks" display =" Average Fitness" >
415460 <setup ></setup >
416461 <update ></update >
417462 <pen interval =" 1.0" mode =" 0" display =" all" color =" -16777216" legend =" true" >
@@ -431,53 +476,8 @@ ask high-drums [plotxy who hits]</update>
431476 <update >plot mean [fitness] of high-drums</update >
432477 </pen >
433478 </plot >
434- <slider x =" 110" step =" 0.01" y =" 170" max =" 1" display =" hit-density-modifier" height =" 33" min =" 0" direction =" Horizontal" default =" 0.5" variable =" hit-density-modifier" width =" 175" sizeVersion =" 0" ></slider >
435- <switch x =" 5" y =" 90" height =" 33" on =" true" variable =" sound?" display =" sound?" width =" 103" sizeVersion =" 0" ></switch >
436- <slider x =" 5" step =" 1" y =" 210" max =" 10" display =" num-mutations" height =" 33" min =" 1" direction =" Horizontal" default =" 1.0" variable =" num-mutations" width =" 125" sizeVersion =" 0" ></slider >
437- <slider x =" 135" step =" 1" y =" 210" max =" 8" display =" mutation-strength" height =" 33" min =" 0" direction =" Horizontal" default =" 1.0" variable =" mutation-strength" width =" 150" sizeVersion =" 0" ></slider >
438- <chooser x =" 40" y =" 310" height =" 45" variable =" soloer" current =" 0" display =" soloer" width =" 92" sizeVersion =" 0" >
439- <choice type =" double" value =" 0.0" ></choice >
440- <choice type =" double" value =" 1.0" ></choice >
441- <choice type =" double" value =" 2.0" ></choice >
442- <choice type =" double" value =" 3.0" ></choice >
443- <choice type =" double" value =" 4.0" ></choice >
444- <choice type =" double" value =" 5.0" ></choice >
445- <choice type =" double" value =" 6.0" ></choice >
446- <choice type =" double" value =" 7.0" ></choice >
447- <choice type =" double" value =" 8.0" ></choice >
448- <choice type =" double" value =" 9.0" ></choice >
449- <choice type =" double" value =" 10.0" ></choice >
450- <choice type =" double" value =" 11.0" ></choice >
451- <choice type =" double" value =" 12.0" ></choice >
452- <choice type =" double" value =" 13.0" ></choice >
453- <choice type =" double" value =" 14.0" ></choice >
454- <choice type =" double" value =" 15.0" ></choice >
455- </chooser >
456- <monitor x =" 40" precision =" 17" y =" 255" height =" 45" fontSize =" 11" width =" 90" sizeVersion =" 0" >generations</monitor >
457- <button x =" 110" y =" 90" height =" 33" disableUntilTicks =" true" forever =" true" kind =" Observer" width =" 100" sizeVersion =" 0" >go-no-evolve</button >
458- <button x =" 75" y =" 50" height =" 33" disableUntilTicks =" true" forever =" false" kind =" Observer" display =" go-once-no-evolve" width =" 135" sizeVersion =" 0" >repeat num-chromosomes * 4 [go-no-evolve]</button >
459- <button x =" 215" y =" 50" height =" 33" disableUntilTicks =" true" forever =" false" kind =" Observer" display =" go-once" width =" 70" sizeVersion =" 0" >repeat num-chromosomes * 4 [ go ]</button >
460- <switch x =" 135" y =" 315" height =" 33" on =" false" variable =" solo?" display =" solo?" width =" 103" sizeVersion =" 0" ></switch >
461- <slider x =" 5" step =" 1" y =" 130" max =" 200" display =" tempo-bpm" height =" 33" min =" 40" direction =" Horizontal" default =" 135.0" variable =" tempo-bpm" width =" 280" sizeVersion =" 0" ></slider >
462- <monitor x =" 135" precision =" 17" y =" 255" height =" 45" fontSize =" 11" display =" Density" width =" 87" sizeVersion =" 0" >precision (count patches with [(pcolor != black) and (pcolor != yellow)] / (count patches)) 3</monitor >
463- <plot x =" 290" autoPlotX =" true" yMax =" 10.0" autoPlotY =" true" yAxis =" Number of Hits" y =" 370" xMin =" 0.0" height =" 150" legend =" false" xMax =" 10.0" yMin =" 0.0" xAxis =" Drummer" display =" Hits Since Evolution" width =" 250" sizeVersion =" 0" >
464- <setup ></setup >
465- <update ></update >
466- <pen interval =" 1.0" mode =" 1" display =" low" color =" -2674135" legend =" true" >
467- <setup ></setup >
468- <update >plot-pen-reset
469- ask low-drums [ plotxy who hits-since-evolve ]</update >
470- </pen >
471- <pen interval =" 1.0" mode =" 1" display =" pen-1" color =" -10899396" legend =" true" >
472- <setup ></setup >
473- <update >plot-pen-reset ask med-drums [ plotxy who hits-since-evolve ]</update >
474- </pen >
475- <pen interval =" 1.0" mode =" 1" display =" pen-2" color =" -13345367" legend =" true" >
476- <setup ></setup >
477- <update >plot-pen-reset ask high-drums [ plotxy who hits-since-evolve ]</update >
478- </pen >
479- </plot >
480- <slider x =" 5" step =" 1" y =" 170" max =" 200" display =" hit-limit" height =" 33" min =" 50" direction =" Horizontal" default =" 120.0" variable =" hit-limit" width =" 100" sizeVersion =" 0" ></slider >
479+ <monitor x =" 690" precision =" 17" y =" 112" height =" 60" fontSize =" 11" width =" 100" >generations</monitor >
480+ <monitor x =" 690" precision =" 17" y =" 175" height =" 60" fontSize =" 11" width =" 100" display =" density" >precision (count patches with [(pcolor != black) and (pcolor != yellow)] / (count patches)) 3</monitor >
481481 </widgets >
482482 <info ><![CDATA[ ## WHAT IS IT?
483483
@@ -1472,7 +1472,7 @@ To inquire about commercial licenses for either NetLogo or specific models from
14721472 </shape >
14731473 </linkShapes >
14741474 <hubNetClient >
1475- <view x =" 71" wrappingAllowedX =" true " y =" 41" frameRate =" 30.0" minPycor =" 0" height =" 320" showTickCounter =" true" patchSize =" 12 .0" fontSize =" 13" wrappingAllowedY =" true " width =" 560" tickCounterLabel =" ticks" maxPycor =" 15" updateMode =" 1" maxPxcor =" 15" minPxcor =" 0" ></view >
1475+ <view x =" 71" wrappingAllowedX =" false " y =" 41" frameRate =" 30.0" minPycor =" 0" height =" 320" showTickCounter =" true" patchSize =" 21 .0" fontSize =" 13" wrappingAllowedY =" false " width =" 560" tickCounterLabel =" ticks" maxPycor =" 15" updateMode =" 1" maxPxcor =" 15" minPxcor =" 0" ></view >
14761476 </hubNetClient >
14771477 <previewCommands >set sound? False
14781478set tempo-bpm 1000
0 commit comments