Commit adc7c52e authored by Celia Rubio Madrigal's avatar Celia Rubio Madrigal

Elm 0.19

parent 7304b599

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

module Main exposing (main)
import Html
import State exposing (init, update, subscriptions)
import Browser
import State exposing (init, subscriptions, update)
import View exposing (view)
main =
Html.program
{ init = init
, update = update
, subscriptions = subscriptions
, view = view
}
Browser.element
{ init = init
, update = update
, subscriptions = subscriptions
, view = view
}
{-
-mostrar letras -- No me gusta demasiado. Lo haría porque se usa mucho
-mostrar sostenidos o bemoles
-mostrar letras -- No me gusta demasiado. Lo haría porque se usa mucho
-mostrar sostenidos o bemoles
-introducción de serie con comas o todo seguido (a,b)
-introducción de serie con letras
-introducción de serie con comas o todo seguido (a,b)
-introducción de serie con letras
-highlight serie al pasar ratón por encima
-poner pentagrama con serie al pasar ratón por encima
-highlight serie al pasar ratón por encima
-poner pentagrama con serie al pasar ratón por encima
-}
{
"version": "1.0.0",
"summary": "helpful summary of your project, less than 80 characters",
"repository": "https://github.com/user/project.git",
"license": "BSD3",
"source-directories": [
".",
"./src"
],
"exposed-modules": [],
"dependencies": {
"elm-community/random-extra": "2.0.0 <= v < 3.0.0",
"elm-lang/core": "5.1.1 <= v < 6.0.0",
"elm-lang/html": "2.0.0 <= v < 3.0.0",
"elm-lang/svg": "2.0.0 <= v < 3.0.0",
"evancz/elm-markdown": "3.0.2 <= v < 4.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}
var _elm_community$random_extra$Random_Array$choose = function (arr) {
if (_elm_lang$core$Array$isEmpty(arr)) {
return _elm_community$random_extra$Random_Extra$constant(
{ctor: '_Tuple2', _0: _elm_lang$core$Maybe$Nothing, _1: arr});
} else {
var front = function (i) {
return A3(_elm_lang$core$Array$slice, 0, i, arr);
};
var lastIndex = _elm_lang$core$Array$length(arr) - 1;
var back = function (i) {
return _elm_lang$core$Native_Utils.eq(i, lastIndex) ? _elm_lang$core$Array$empty : A3(_elm_lang$core$Array$slice, i + 1, lastIndex + 1, arr);
};
var gen = A2(_elm_lang$core$Random$int, 0, lastIndex);
return A2(
_elm_lang$core$Random$map,
function (index) {
return {
ctor: '_Tuple2',
_0: A2(_elm_lang$core$Array$get, index, arr),
_1: A2(
_elm_lang$core$Array$append,
front(index),
back(index))
};
},
gen);
}
};
var _elm_community$random_extra$Random_Array$shuffle = function (arr) {
if (_elm_lang$core$Array$isEmpty(arr)) {
return _elm_community$random_extra$Random_Extra$constant(arr);
} else {
var helper = function (_p0) {
var _p1 = _p0;
var _p6 = _p1._0;
return A2(
_elm_lang$core$Random$andThen,
function (_p2) {
var _p3 = _p2;
var _p5 = _p3._1;
var _p4 = _p3._0;
if (_p4.ctor === 'Nothing') {
return _elm_community$random_extra$Random_Extra$constant(
{ctor: '_Tuple2', _0: _p6, _1: _p5});
} else {
return helper(
{
ctor: '_Tuple2',
_0: {ctor: '::', _0: _p4._0, _1: _p6},
_1: _p5
});
}
},
_elm_community$random_extra$Random_Array$choose(_p1._1));
};
return A2(
_elm_lang$core$Random$map,
function (_p7) {
return _elm_lang$core$Array$fromList(
_elm_lang$core$Tuple$first(_p7));
},
helper(
{
ctor: '_Tuple2',
_0: {ctor: '[]'},
_1: arr
}));
}
};
var _elm_community$random_extra$Random_Array$sample = function (arr) {
var gen = A2(
_elm_lang$core$Random$int,
0,
_elm_lang$core$Array$length(arr) - 1);
return A2(
_elm_lang$core$Random$map,
function (index) {
return A2(_elm_lang$core$Array$get, index, arr);
},
gen);
};
var _elm_community$random_extra$Random_Array$array = F2(
function (arrayLength, generator) {
return A2(
_elm_lang$core$Random$map,
_elm_lang$core$Array$fromList,
A2(_elm_lang$core$Random$list, arrayLength, generator));
});
var _elm_community$random_extra$Random_Array$rangeLengthArray = F3(
function (minLength, maxLength, generator) {
return A2(
_elm_lang$core$Random$andThen,
function (len) {
return A2(_elm_community$random_extra$Random_Array$array, len, generator);
},
A2(_elm_lang$core$Random$int, minLength, maxLength));
});
var _elm_community$random_extra$Random_Color$blue = A2(
_elm_lang$core$Random$map,
function (blue) {
return A3(_elm_lang$core$Color$rgb, 0, 0, blue);
},
A2(_elm_lang$core$Random$int, 0, 255));
var _elm_community$random_extra$Random_Color$green = A2(
_elm_lang$core$Random$map,
function (green) {
return A3(_elm_lang$core$Color$rgb, 0, green, 0);
},
A2(_elm_lang$core$Random$int, 0, 255));
var _elm_community$random_extra$Random_Color$red = A2(
_elm_lang$core$Random$map,
function (red) {
return A3(_elm_lang$core$Color$rgb, red, 0, 0);
},
A2(_elm_lang$core$Random$int, 0, 255));
var _elm_community$random_extra$Random_Color$greyscale = A2(
_elm_lang$core$Random$map,
_elm_lang$core$Color$greyscal