<commit_before>/*
 *	ej.mtof by <NAME>, Ircam  02 2005
 *	MIDI to Frequency (with tuning adjustment)
 *
 *	$Revision: 1.1 $
 *	$Date: 2006/04/27 16:58:16 $
 */

package ej;

import com.cycling74.max.Atom;

public class mtof extends ej {
	private static final String[] INLET_ASSIST = new String[]{ "MIDI note number in (int/float/list)" };
	private static final String[] OUTLET_ASSIST = new String[]{ "Frequency out"};

	private float tuning = 440;
	private int pitch_reference = 69;
	
	public mtof(float[] args) {
		declareTypedIO("a", "l");
		createInfoOutlet(true);
		
		argsManager(args);
		declareAttribute("tuning", "getTunnig", "setTunnig");
		declareAttribute("pitch_reference", "getPitchReference", "setPitchReference");
		
		setInletAssist(INLET_ASSIST);
		setOutletAssist(OUTLET_ASSIST);
	}
	
	private void argsManager(float[] args) {
		switch (args.length) {
			case 1:<commit_msg>test de commit depuis eclipse sur mac<commit_after>/*
 *	ej.mtof by <NAME>, Ircam  02 2005
 *	MIDI to Frequency (with tuning adjustment)
 *
 *	$Revision: 1.2 $
 *	$Date: 2006/04/27 18:42:22 $
 */

// test de commit depuis ecplise sur mac...

package ej;

import com.cycling74.max.Atom;

public class mtof extends ej {
	private static final String[] INLET_ASSIST = new String[]{ "MIDI note number in (int/float/list)" };
	private static final String[] OUTLET_ASSIST = new String[]{ "Frequency out"};

	private float tuning = 440;
	private int pitch_reference = 69;
	
	public mtof(float[] args) {
		declareTypedIO("a", "l");
		createInfoOutlet(true);
		
		argsManager(args);
		declareAttribute("tuning", "getTunnig", "setTunnig");
		declareAttribute("pitch_reference", "getPitchReference", "setPitchReference");
		
		setInletAssist(INLET_ASSIST);
		setOutletAssist(OUTLET_ASSIST);
	}
	
	private void argsManager(float[] args) {
		switch (args.length) {
			case 1:
{'fraction_non_alphanumeric': 0.1332973556395035, 'fraction_numerical': 0.032379924446842956, 'mean_word_length': 4.601208459214502, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6058252', 'n_tokens_mistral': 743, 'n_tokens_neox': 641, 'n_words': 170}