data/full_repos/permissive/179439333/src/sound-module/MidiNoteNumberToSampleTicks.v
data/verilator_xmls/4dde4ea4-9271-4477-9e5c-743eedcf9236.xml
module MidiNoteNumberToSampleTicks(
	input [7:0] midiNoteNumber,
	output reg [23:0] noteSampleTicks
);

always @(midiNoteNumber)
begin
	case (midiNoteNumber)
		8'h00: noteSampleTicks <= 24'd23889;
		8'h01: noteSampleTicks <= 24'd22548;
		8'h02: noteSampleTicks <= 24'd21282;
		8'h03: noteSampleTicks <= 24'd20088;
		8'h04: noteSampleTicks <= 24'd18960;
		8'h05: noteSampleTicks <= 24'd17896;
		8'h06: noteSampleTicks <= 24'd16892;
		8'h07: noteSampleTicks <= 24'd15944;
		8'h08: noteSampleTicks <= 24'd15049;
		8'h09: noteSampleTicks <= 24'd14204;
		8'h0A: noteSampleTicks <= 24'd13407;
		8'h0B: noteSampleTicks <= 24'd12654;
		8'h0C: noteSampleTicks <= 24'd11944;
		8'h0D: noteSampleTicks <= 24'd11274;
		8'h0E: noteSampleTicks <= 24'd10641;
		8'h0F: noteSampleTicks <= 24'd10044;
		8'h10: noteSampleTicks <= 24'd9480;
		8'h11: noteSampleTicks <= 24'd8948;
		8'h12: noteSampleTicks <= 24'd8446;
		8'h13: noteSampleTicks <= 24'd7972;
		8'h14: noteSampleTicks <= 24'd7524;
		8'h15: noteSampleTicks <= 24'd7102;
		8'h16: noteSampleTicks <= 24'd6703;
		8'h17: noteSampleTicks <= 24'd6327;
		8'h18: noteSampleTicks <= 24'd5972;
		8'h19: noteSampleTicks <= 24'd5637;
		8'h1A: noteSampleTicks <= 24'd5320;
		8'h1B: noteSampleTicks <= 24'd5022;
		8'h1C: noteSampleTicks <= 24'd4740;
		8'h1D: noteSampleTicks <= 24'd4474;
		8'h1E: noteSampleTicks <= 24'd4223;
		8'h1F: noteSampleTicks <= 24'd3986;
		8'h20: noteSampleTicks <= 24'd3762;
		8'h21: noteSampleTicks <= 24'd3551;
		8'h22: noteSampleTicks <= 24'd3351;
		8'h23: noteSampleTicks <= 24'd3163;
		8'h24: noteSampleTicks <= 24'd2986;
		8'h25: noteSampleTicks <= 24'd2818;
		8'h26: noteSampleTicks <= 24'd2660;
		8'h27: noteSampleTicks <= 24'd2511;
		8'h28: noteSampleTicks <= 24'd2370;
		8'h29: noteSampleTicks <= 24'd2237;
		8'h2A: noteSampleTicks <= 24'd2111;
		8'h2B: noteSampleTicks <= 24'd1993;
		8'h2C: noteSampleTicks <= 24'd1881;
		8'h2D: noteSampleTicks <= 24'd1775;
		8'h2E: noteSampleTicks <= 24'd1675;
		8'h2F: noteSampleTicks <= 24'd1581;
		8'h30: noteSampleTicks <= 24'd1493;
		8'h31: noteSampleTicks <= 24'd1409;
		8'h32: noteSampleTicks <= 24'd1330;
		8'h33: noteSampleTicks <= 24'd1255;
		8'h34: noteSampleTicks <= 24'd1185;
		8'h35: noteSampleTicks <= 24'd1118;
		8'h36: noteSampleTicks <= 24'd1055;
		8'h37: noteSampleTicks <= 24'd996;
		8'h38: noteSampleTicks <= 24'd940;
		8'h39: noteSampleTicks <= 24'd887;
		8'h3A: noteSampleTicks <= 24'd837;
		8'h3B: noteSampleTicks <= 24'd790;
		8'h3C: noteSampleTicks <= 24'd746;
		8'h3D: noteSampleTicks <= 24'd704;
		8'h3E: noteSampleTicks <= 24'd665;
		8'h3F: noteSampleTicks <= 24'd627;
		8'h40: noteSampleTicks <= 24'd592;
		8'h41: noteSampleTicks <= 24'd559;
		8'h42: noteSampleTicks <= 24'd527;
		8'h43: noteSampleTicks <= 24'd498;
		8'h44: noteSampleTicks <= 24'd470;
		8'h45: noteSampleTicks <= 24'd443;
		8'h46: noteSampleTicks <= 24'd418;
		8'h47: noteSampleTicks <= 24'd395;
		8'h48: noteSampleTicks <= 24'd373;
		8'h49: noteSampleTicks <= 24'd352;
		8'h4A: noteSampleTicks <= 24'd332;
		8'h4B: noteSampleTicks <= 24'd313;
		8'h4C: noteSampleTicks <= 24'd296;
		8'h4D: noteSampleTicks <= 24'd279;
		8'h4E: noteSampleTicks <= 24'd263;
		8'h4F: noteSampleTicks <= 24'd249;
		8'h50: noteSampleTicks <= 24'd235;
		8'h51: noteSampleTicks <= 24'd221;
		8'h52: noteSampleTicks <= 24'd209;
		8'h53: noteSampleTicks <= 24'd197;
		8'h54: noteSampleTicks <= 24'd186;
		8'h55: noteSampleTicks <= 24'd176;
		8'h56: noteSampleTicks <= 24'd166;
		8'h57: noteSampleTicks <= 24'd156;
		8'h58: noteSampleTicks <= 24'd148;
		8'h59: noteSampleTicks <= 24'd139;
		8'h5A: noteSampleTicks <= 24'd131;
		8'h5B: noteSampleTicks <= 24'd124;
		8'h5C: noteSampleTicks <= 24'd117;
		8'h5D: noteSampleTicks <= 24'd110;
		8'h5E: noteSampleTicks <= 24'd104;
		8'h5F: noteSampleTicks <= 24'd98;
		8'h60: noteSampleTicks <= 24'd93;
		8'h61: noteSampleTicks <= 24'd88;
		8'h62: noteSampleTicks <= 24'd83;
		8'h63: noteSampleTicks <= 24'd78;
		8'h64: noteSampleTicks <= 24'd74;
		8'h65: noteSampleTicks <= 24'd69;
		8'h66: noteSampleTicks <= 24'd65;
		8'h67: noteSampleTicks <= 24'd62;
		8'h68: noteSampleTicks <= 24'd58;
		8'h69: noteSampleTicks <= 24'd55;
		8'h6A: noteSampleTicks <= 24'd52;
		8'h6B: noteSampleTicks <= 24'd49;
		8'h6C: noteSampleTicks <= 24'd46;
		8'h6D: noteSampleTicks <= 24'd44;
		8'h6E: noteSampleTicks <= 24'd41;
		8'h6F: noteSampleTicks <= 24'd39;
		8'h70: noteSampleTicks <= 24'd37;
		8'h71: noteSampleTicks <= 24'd34;
		8'h72: noteSampleTicks <= 24'd32;
		8'h73: noteSampleTicks <= 24'd31;
		8'h74: noteSampleTicks <= 24'd29;
		8'h75: noteSampleTicks <= 24'd27;
		8'h76: noteSampleTicks <= 24'd26;
		8'h77: noteSampleTicks <= 24'd24;
		8'h78: noteSampleTicks <= 24'd23;
		8'h79: noteSampleTicks <= 24'd22;
		8'h7A: noteSampleTicks <= 24'd20;
		8'h7B: noteSampleTicks <= 24'd19;
		8'h7C: noteSampleTicks <= 24'd18;
		8'h7D: noteSampleTicks <= 24'd17;
		8'h7E: noteSampleTicks <= 24'd16;
		8'h7F: noteSampleTicks <= 24'd15;

		default: noteSampleTicks <= 0;
	endcase
end

endmodule
module MidiNoteNumberToSampleTicks(
	input [7:0] midiNoteNumber,
	output reg [23:0] noteSampleTicks
);


always @(midiNoteNumber)
begin
	case (midiNoteNumber)
		8'h00: noteSampleTicks <= 24'd23889;
		8'h01: noteSampleTicks <= 24'd22548;
		8'h02: noteSampleTicks <= 24'd21282;
		8'h03: noteSampleTicks <= 24'd20088;
		8'h04: noteSampleTicks <= 24'd18960;
		8'h05: noteSampleTicks <= 24'd17896;
		8'h06: noteSampleTicks <= 24'd16892;
		8'h07: noteSampleTicks <= 24'd15944;
		8'h08: noteSampleTicks <= 24'd15049;
		8'h09: noteSampleTicks <= 24'd14204;
		8'h0A: noteSampleTicks <= 24'd13407;
		8'h0B: noteSampleTicks <= 24'd12654;
		8'h0C: noteSampleTicks <= 24'd11944;
		8'h0D: noteSampleTicks <= 24'd11274;
		8'h0E: noteSampleTicks <= 24'd10641;
		8'h0F: noteSampleTicks <= 24'd10044;
		8'h10: noteSampleTicks <= 24'd9480;
		8'h11: noteSampleTicks <= 24'd8948;
		8'h12: noteSampleTicks <= 24'd8446;
		8'h13: noteSampleTicks <= 24'd7972;
		8'h14: noteSampleTicks <= 24'd7524;
		8'h15: noteSampleTicks <= 24'd7102;
		8'h16: noteSampleTicks <= 24'd6703;
		8'h17: noteSampleTicks <= 24'd6327;
		8'h18: noteSampleTicks <= 24'd5972;
		8'h19: noteSampleTicks <= 24'd5637;
		8'h1A: noteSampleTicks <= 24'd5320;
		8'h1B: noteSampleTicks <= 24'd5022;
		8'h1C: noteSampleTicks <= 24'd4740;
		8'h1D: noteSampleTicks <= 24'd4474;
		8'h1E: noteSampleTicks <= 24'd4223;
		8'h1F: noteSampleTicks <= 24'd3986;
		8'h20: noteSampleTicks <= 24'd3762;
		8'h21: noteSampleTicks <= 24'd3551;
		8'h22: noteSampleTicks <= 24'd3351;
		8'h23: noteSampleTicks <= 24'd3163;
		8'h24: noteSampleTicks <= 24'd2986;
		8'h25: noteSampleTicks <= 24'd2818;
		8'h26: noteSampleTicks <= 24'd2660;
		8'h27: noteSampleTicks <= 24'd2511;
		8'h28: noteSampleTicks <= 24'd2370;
		8'h29: noteSampleTicks <= 24'd2237;
		8'h2A: noteSampleTicks <= 24'd2111;
		8'h2B: noteSampleTicks <= 24'd1993;
		8'h2C: noteSampleTicks <= 24'd1881;
		8'h2D: noteSampleTicks <= 24'd1775;
		8'h2E: noteSampleTicks <= 24'd1675;
		8'h2F: noteSampleTicks <= 24'd1581;
		8'h30: noteSampleTicks <= 24'd1493;
		8'h31: noteSampleTicks <= 24'd1409;
		8'h32: noteSampleTicks <= 24'd1330;
		8'h33: noteSampleTicks <= 24'd1255;
		8'h34: noteSampleTicks <= 24'd1185;
		8'h35: noteSampleTicks <= 24'd1118;
		8'h36: noteSampleTicks <= 24'd1055;
		8'h37: noteSampleTicks <= 24'd996;
		8'h38: noteSampleTicks <= 24'd940;
		8'h39: noteSampleTicks <= 24'd887;
		8'h3A: noteSampleTicks <= 24'd837;
		8'h3B: noteSampleTicks <= 24'd790;
		8'h3C: noteSampleTicks <= 24'd746;
		8'h3D: noteSampleTicks <= 24'd704;
		8'h3E: noteSampleTicks <= 24'd665;
		8'h3F: noteSampleTicks <= 24'd627;
		8'h40: noteSampleTicks <= 24'd592;
		8'h41: noteSampleTicks <= 24'd559;
		8'h42: noteSampleTicks <= 24'd527;
		8'h43: noteSampleTicks <= 24'd498;
		8'h44: noteSampleTicks <= 24'd470;
		8'h45: noteSampleTicks <= 24'd443;
		8'h46: noteSampleTicks <= 24'd418;
		8'h47: noteSampleTicks <= 24'd395;
		8'h48: noteSampleTicks <= 24'd373;
		8'h49: noteSampleTicks <= 24'd352;
		8'h4A: noteSampleTicks <= 24'd332;
		8'h4B: noteSampleTicks <= 24'd313;
		8'h4C: noteSampleTicks <= 24'd296;
		8'h4D: noteSampleTicks <= 24'd279;
		8'h4E: noteSampleTicks <= 24'd263;
		8'h4F: noteSampleTicks <= 24'd249;
		8'h50: noteSampleTicks <= 24'd235;
		8'h51: noteSampleTicks <= 24'd221;
		8'h52: noteSampleTicks <= 24'd209;
		8'h53: noteSampleTicks <= 24'd197;
		8'h54: noteSampleTicks <= 24'd186;
		8'h55: noteSampleTicks <= 24'd176;
		8'h56: noteSampleTicks <= 24'd166;
		8'h57: noteSampleTicks <= 24'd156;
		8'h58: noteSampleTicks <= 24'd148;
		8'h59: noteSampleTicks <= 24'd139;
		8'h5A: noteSampleTicks <= 24'd131;
		8'h5B: noteSampleTicks <= 24'd124;
		8'h5C: noteSampleTicks <= 24'd117;
		8'h5D: noteSampleTicks <= 24'd110;
		8'h5E: noteSampleTicks <= 24'd104;
		8'h5F: noteSampleTicks <= 24'd98;
		8'h60: noteSampleTicks <= 24'd93;
		8'h61: noteSampleTicks <= 24'd88;
		8'h62: noteSampleTicks <= 24'd83;
		8'h63: noteSampleTicks <= 24'd78;
		8'h64: noteSampleTicks <= 24'd74;
		8'h65: noteSampleTicks <= 24'd69;
		8'h66: noteSampleTicks <= 24'd65;
		8'h67: noteSampleTicks <= 24'd62;
		8'h68: noteSampleTicks <= 24'd58;
		8'h69: noteSampleTicks <= 24'd55;
		8'h6A: noteSampleTicks <= 24'd52;
		8'h6B: noteSampleTicks <= 24'd49;
		8'h6C: noteSampleTicks <= 24'd46;
		8'h6D: noteSampleTicks <= 24'd44;
		8'h6E: noteSampleTicks <= 24'd41;
		8'h6F: noteSampleTicks <= 24'd39;
		8'h70: noteSampleTicks <= 24'd37;
		8'h71: noteSampleTicks <= 24'd34;
		8'h72: noteSampleTicks <= 24'd32;
		8'h73: noteSampleTicks <= 24'd31;
		8'h74: noteSampleTicks <= 24'd29;
		8'h75: noteSampleTicks <= 24'd27;
		8'h76: noteSampleTicks <= 24'd26;
		8'h77: noteSampleTicks <= 24'd24;
		8'h78: noteSampleTicks <= 24'd23;
		8'h79: noteSampleTicks <= 24'd22;
		8'h7A: noteSampleTicks <= 24'd20;
		8'h7B: noteSampleTicks <= 24'd19;
		8'h7C: noteSampleTicks <= 24'd18;
		8'h7D: noteSampleTicks <= 24'd17;
		8'h7E: noteSampleTicks <= 24'd16;
		8'h7F: noteSampleTicks <= 24'd15;

		default: noteSampleTicks <= 0;
	endcase
end

endmodule