Lines Matching refs:meter
204 * @param string $meterLine line of meter (M) information field
209 $meter = preg_replace('/\s?M\s?:/', '', $meterLine);
211 // default to 1/8 if meter is empty or "none"
212 if (!$meter || $meter == 'none') return "1/8";
214 // replace meter symbols with standard meters
215 $meter = str_replace('C|', '2/4', $meterLine);
216 $meter = str_replace('C', '4/4', $meterLine);
218 // meter is usually in the form <number>/<number>
219 preg_match("/(\d)\/(\d)/", $meter, $matches);
220 // default to 1/8 if meter isn't in that form